+ 4

How definition of a class defines the behavior of an object?

20th Dec 2018, 1:46 PM
Chingkheinganba Thwdm
Chingkheinganba Thwdm - avatar
2 Réponses
+ 7
By methods (member functions) of the class
21st Dec 2018, 12:18 AM
Mihail Kulev
Mihail Kulev - avatar
+ 6
Umm. What I can say here is : When you define a class you define data members as private or public. So it defines that object can access that data members or not. Definition of class defines that what that perticular object can access.
20th Dec 2018, 1:52 PM
Raj Chhatrala
Raj Chhatrala - avatar