Advertisements
Advertisements
Question
______ encapsulate state and behaviour.
Options
Data
Methods
Formula
Objects
MCQ
Fill in the Blanks
Advertisements
Solution
Objects encapsulate state and behaviour.
Explanation:
- Objects in Object-Orientated Programming (OOP) encapsulate both state (data/attributes) and behaviour (methods/functions).
- They combine data and the operations performed on that data into a single unit.
shaalaa.com
Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 42]
