hey guys i need help....say i have a class bullet and in dat class i define a variable called attack_damage in bullet.h within public and i create an object in main called bullet1.... so is it wrong for me to access dat variable like shown below in the code and if not how can i access it....thanx in advance
1 2 3 4 5 6 7
// bullet.h
bool attack damage=false;
// creating object in main
bullet bullet1;
bullet1.attack_damage=true;