0
C++ Scope of the public members of an object
Hello all. struggling with classes & objects here. I've defined a class (playingCard) in my source and created an object (card1) from that class inside a function. Can I call the public members of card1 from within a diffrent function? if not, is there a way to make the public members of card1 globally accessable?
1 Answer
0
The public members of any class are accesible from anywhere.