Computer Applications
What does a class encapsulate?
Objects & Classes
ICSE 2013
13 Likes
Answer
A class encapsulates the characteristics, state and behaviour (data and functions) of an entity.
Answered By
7 Likes
Related Questions
Write a difference between class and object.
Consider the below picture and choose the correct statement from the following:

- Polygon is the object and the pictures are classes
- Both polygon and the pictures are classes
- Polygon is the class and the pictures are objects
- Both polygon and the pictures are objects
Assertion (A): A car can be defined as a real world object that possesses some characteristics and behaviour.
Reason (R): Each real world object may contain some characteristics but not behaviour.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.
By default, a class is declared using the access specifier …………… .
- private
- public
- protected
- secured