Question: What is a Class?
Ans: A class is a template that defines the member property and methods which are common to all objects of a certain kind.
Question: What is an object?
Ans: An object is an instance of a class.
Question: What are the feature of OOP:
1)Abstraction :The process of extracting the essential information and hiding the irrelevant details.
2)Encapsulation: The process of binding code and data together in a class.
3)Inheritance: The feature by which one class acquires the properties and functionalists of super class.
4)Polymorphism: It means one name many form.This allows the same method to be used for a general set of actions.
No comments:
Post a Comment