Which among the following is the main characteristic of class?

Which among the following is the main characteristic of class?
A. Inheritance
B. Encapsulation
C. Polymorphism
D. Object creation
 
Answer: b
Explanation: The classes are made to encapsulate the data and properties that are most similar and can be grouped together inside a single class. This single class can represent all of those features by creating its instances.
 

Tìm kiếm

Back
Top