Basic Concepts of Object Oriented Programming
Basic Concepts of Object Oriented Programming
Basic Concepts of Object Oriented Programming
Objects
Classes
Data abstraction
Data encapsulation
Inheritance
Polymorphism
Dynamic binding
Message Communication
Objects
Objects are the basic runtime entities in an object oriented system. They
may represent a person, a place, a bank account, a table of data. They may also
represent user defined data such as vectors, time and lists.
Classes
Example : Mango, Apple and Orange are Objects of the class fruits.
A class represents a set of related objects. The object has some attributes, whose
value consist much of the state of an object. The data and the operation of a class
can be declared as three type
Public
Protected
Private
Data Abstraction
Data Encapsulation
Inheritance
Polymorphism
Polymorphism means the ability to take more than one form. An operation
may exhibit different behavior in different instances. Polymorphism implemental
into two ways.
Operator Overloading
Function Overloading
Dynamic Binding
Message Communication
OOP refers several benefits to both the developer and user same of them
are