1.1 Object-Oriented Programming
![]() |
Object-oriented programming |
Object-oriented programming (OOP) is a programming technique in which programs are written on the basis of an object. An object is a collection of data and functions. Objects may represent a person's things are placed in the Real world.In OOP, data and all possible functions on data and grouped together.Object-oriented programs are easier to learn and modify.
Object-oriented programming is a powerful technique to develop software.It is used to analyze and design the application in term of objects.it's deals with data and the procedures that process the data as a single object.
Some of the object-oriented languages that have been developed are:
C++
Smalltalk
Eiffel
CLOS
Jave
1.1.2 Features of Object-Oriented Programming
Following are some future of object-oriented programming:
1. Objects:
OPP provides the facility of programming based on object.object is an entity that consists of data and functions.
2. Classes:
Classes are designs for creating objects.OOP provides the facility to design classes for creating different objects. All properties and functions of an object are specified in classes.
3.Real-word Modeling:
OPP is based on Real-world modeling. As in the real world, things have properties and working capabilities.Similarity objects have data and functions.Data represent properties and function represent working of objects.
4.Reusability:
OPP provides ways of reusing the data and code.Inheritance is a technique that a programmer to use the code of existing program to create new programs.
5.Information Hiding:
Oop allow the programmer to hide important data from the user.It is performed by encapsulation.
6.Polymorphism:
Polymorphism is an ability of an object to behave in multiple ways.
1.2.Objects:
An object represents an entity in the real world such as a person, thing or concept etc.An object is identified by its name.An object consists of the following two things:
-Properties:
Properties are the characteristics of an object.
Functions:
Functions are the actions that can be performed by an object.
Example:
Some Examples of Objects of different types are as follows:
update soon so stay connect us....
0 comments: