User avatar
13745
 
Posts: 3
Joined: Mon Mar 30, 2015 1:45 pm
Blog: View Blog (3)
Archives
- April 2015
+ March 2015
Search Blogs

Practical approach to Object Oriented Programming

Permanent Linkby 13745 on Wed Apr 01, 2015 1:57 pm



Object-oriented programming:-
Object-oriented programming language (OOPL) is a high-level programming language based on the object-oriented programming (OOP) model.
OOPL incorporates logical classes, objects, methods, relationships and other processes with the design of software and applications.
Example:-
1.Java
2.C language
3.C++
4.Smalltalk
5.PHP etc.

Brief History:-
SIMULA was the first object language. As its name suggests it was used to create simulations.It was developed by Kristen Nygaard and Ole-Johan Dahl in Norway.
The term "object oriented programming " was first used by Xerox PARC in their Smalltalk programming language.The idea of object-oriented programming gained momentum in the 1970s and in the early 1980s Bjorn Stroustrup integrated object-oriented programming into the C language. The resulting language was called C++ and it became the first object-oriented language to be widely used commercially.
In the early 1990s a group at Sun led by James Gosling developed a simpler version of C++ called Java that was meant to be a programming language for video-on-demand applications.

Advantage:-
One of the principal advantages of object-oriented programming techniques over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer can simply create a new object that inherits many of its features from existing objects. This makes object-oriented programs easier to modify.

Basic Concepts used in the Object-Oriented Programming language:-
Object:
In programming terms, an object is a self-contained component that contains properties and methods needed to make a certain type of data useful.
Class:
A class represents description of objects that share same attributes and actions.
Data Abstraction:
Abstraction is design oriented while abstraction is implementation oriented. The focus of abstraction is on the interface.
Encapsulation:
It is a technique to hide the properties and behaviours of an object.
Polymorphism:
In it multiple types of objects might be able to work in a given situation.
Inheritance:
Inheritance enables new classes to receive.
Message passing:
In OOPs, Message Passing involves specifying the name of objects, the name of the function, and the information to be sent.
Dynamic binding:
In OOPs, Dynamic Binding refers to linking a procedure call to the code that will be executed only at run time. The code associated with the procedure in not known until the program is executed, which is also known as late binding.

0 Comments Viewed 1636 times

Who is online

Registered users: Google [Bot]

cron