Friday, July 28, 2017

Object-oriented programming


Computer programming Paradigms 

1. process-oriented model

In a process-oriented model, code acting on data.  Example: C .with this approach programs complexity is increased.

2. object-oriented programming
An object-oriented program can be characterized as data controlling access to code

Object-oriented programming

Object-oriented programming (OOP)is a programming language model organized around objects rather than "actions" and data rather than logic.
A program has been viewed as a logical procedure that takes input data, processes it, and produces output data.

Evolution of OOPS











History of OOPS

1.      The basis for OOP started in the early 1960s
2.      the first programming language to use objects was Simula 67
3.      Many consider that the first truly O-O language was Smalltalk, developed at the Learning Research Group at Xerox's Palo Alto Research Center in the early 1970s.
4.      C++ was implemented in 1982 under the name C with Classes.
5.      Bjarne Stroustrup  design  C++ by combining  some of the features of Simula with the syntax of C.
6.      Later Java was introduced.



Difference between Object Oriented Programming and Procedural Programming

Procedural Programming
Object Oriented Programming
1. In Procedural Programming a program is created step by step instructional format and instructions are executed in order.
2.Follow top down approach.
3. Less secure because it does not have any proper way of data hiding.
4.Does not provide code re-usability feature
5. Doesn’t provide ability to simulate real-world event much more effectively.
6. Slow development
1. In Object Oriented Programming a program is created in a way as real world works.
2. Follow bottom to top approach.
3. Secure because it have proper way of data hiding.
4. Provide code reusability feature.
5. Provide ability to simulate real-world event much more effectively.
6. Fast Development.


OOPs Concept

Object-Oriented Programming is a paradigm to design a program using classes and objects.

Object: Any entity that has state and behavior is known as an object
Example: pen, chair etc..

Class: Collection of objects is called class
Example: Pens is class and pen is object.






No comments:

Post a Comment