Advertisements
Advertisements
Question
Member Method encompasses the ______ of a class.
Fill in the Blanks
Advertisements
Solution
Member Method encompasses the behavior of a class.
Explanation:
In object-orientated programming, a class is defined by its attributes and actions. While member variables (data fields) store the state of a class, member methods encompass the behaviour, meaning the logic and operations that the object can actually perform.
shaalaa.com
Is there an error in this question or solution?
Chapter 5: Library Classes - Exercises [Page 134]
