Advertisements
Advertisements
Question
State True or False.
Member methods or functions that are attached to an object define their state.
True or False
Advertisements
Solution
This statement is false.
Explanation:
- Member methods or functions define the behaviour of an object, not its state.
- The state of an object is defined by its variables (data members).
shaalaa.com
Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 65]
