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?

25th May 2017, 9:45 AM
Jeffrey Cheeseman
1 Odpowiedź
0
The public members of any class are accesible from anywhere.
25th May 2017, 10:09 AM
Madera Oxidada
Madera Oxidada - avatar