Advertisements
Advertisements
Question
Which of the following statements is valid for the objects?
Options
They possess same characteristics and behaviour.
They possess same characteristics but different behaviour.
They possess different characteristics and different behaviour.
They possess different characteristics but common behaviour.
MCQ
Solution
They possess different characteristics but common behaviour.
Explanation:
Although objects in the same class may differ in terms of their states or attributes, such as variable values, they frequently behave similarly thanks to class-defined methods and functions.
shaalaa.com
Is there an error in this question or solution?