0

How would the atrribute__a of the class b be accessed from outside the class?

29th Nov 2016, 5:56 AM
Muhammad Tarek Khan
Muhammad Tarek Khan - avatar
2 ответов
+ 2
thank u
13th Dec 2016, 12:18 PM
Muhammad Tarek Khan
Muhammad Tarek Khan - avatar
0
u must declare: public before atrribute now u can use this atrribute everywhere. if you use: private before atrribute than only objects of this class can use this atrribute
29th Nov 2016, 7:46 PM
3rtert