CPP Notes
Java Notes
Notes
Que & Ans
OOP- Object Oriented Programming
28 May
2
What is OOP ? Write down the features of OOP.
OOP(Object Oriented Programming) is an approach which providing a way for modulating program by creating partitioned memory area for both data and function, which can be used as template for creating copy of such module or demand.
So, an OOP divide the pattern area of computer memory and that store the data and set of operations which can be access the data.
Features of OOP :-
As the OOP is the latest concept among the programming. It includes the following features. i.e. :
- Object
- Class
- Data extraction & encapsulation
- Inheritance
- Polymorphism
- Dynamic binding
- Message passing
1) Object :-
Object is the basic runtime entities in an object oriented system in which may be represented a person, place, a bank account, a table of data or any item that the program has to handle. The programming problem is analyzed in term of the object and nature of communication between them.
For Ex.:- The student and their mark are the two object in a program that means the student object mentioned a message to the mark object requiring/requesting for the mark.
2) Class :-
The object which contain data and go to manipulate the data. The entire set of data and the code of a object can be a user defined data type with the help of class. In fact object are the variable of the type class. Once a class has been defined we can create any member of object belonging to that class. So, a class is a collection of objects with similar datatypes.
3) Data extraction and encapsulation :-
Data extraction refers to the act of representing essential features without including the background details and explanations. Classes used the concept of extraction and are defined as a list of abstract attributes like size and cost and the function to operate in this attribute.
The wrapping of data and function into a single unit is called the encapsulation.
“Or” Encapsulation is the binding the data and the variables and the function together in a class is known as the encapsulation.
Abstraction means it is only showing the essential features of application without including the background details.
4) Inheritance :-
Inheritance is a concept which allow the user refusing a code again and again. A derived class is inherit a base class.
“Or” Inheritance is a process by which object of one class occupy the property of object of another class.
5) Polymorphism :-
The polymorphism is the another features of OOP which is a important concept of OOP’s :
Concept of OOP’s :-
The polymorphism create a function with different argument. Actually polymorphism is a Greek word which means able to take more then one form and an operation may exhibit behavior in different instant. The behavior depends upon the type of data.
6) Dynamic binding :-
Binding refers to the linking of procedure call to the code to be executed in response to decal. The dynamic binding is also called the binding which means the code associated with a given procedure.
7) Message passing :-
Message passing is also an important concept of OOP. It consists of a set of object which can communicate with each other. The process of programming in the object oriented language involve the following basic steps :
- Creating classes which defines object and their behavior.
- Creating object from class definition.
- Establishing communicating among object.
Also Read :-
Programs of C
Programs of C++
Programs of Java
Programs of Python
Codes with HTML, CSS, JS
More Questions & Answers
Previous article
Next article
wow,,. in simple word ...
ReplyDeleteGood for beginner in java && C+++
ReplyDelete