Q: An object is represented by two attributes, out of which one is characteristics and the other one
is ___________.
-
A
Behaviour
-
B
Situation
-
C
Abstraction
-
D
Encapsulation
A
Answer:
A
Explanation:
An object in Object-Oriented Programming (OOP) is typically represented by two attributes:
- Characteristics – These are the properties or data members of the object, often referred to as attributes or fields.
- Behaviour – These are the functions or methods that define the actions the object can perform, often referred to as member functions.
Related Topic:
Share Above MCQ