1. What is Encapsulation? (or) Define Encapsulation.

The mechanism by which the data and functions are bound together within an object definition is called as ENCAPSULATION.

2. What is abstraction? (or) Define abstraction.

v Abstraction means providing access to essential part of a class, and

v Restricting the access to irrelevant part of a class.

v Abstraction provides data security.

3. What is inheritance? (or) Define inheritance.

v When one class inherits or acquires the properties of another class it is known as Inheritance.

v A class which gives properties is base class or parent class.

v A class which acquires is derived class or child class.

4. What is polymorphism? (or) Define Polymorphism.

v Ability of an object to respond differently to different messages is called polymorphism.

v Two types of polymorphism are

o Static polymorphism.

o Dynamic polymorphism.



Like it on Facebook, Tweet it or share this article on other bookmarking websites.

No comments