English

State True or False. Member methods or functions that are attached to an object define their state.

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]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 2. (ii) | Page 65
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×