Wednesday, 21 August 2013

OOP

Stands for "Object-Oriented Programming." OOP (not Oops!) refers to a programming methodology based on objects, instead of just functions and procedures.
Object-oriented programming makes it easier for programmers to structure and organize software programs. Because individual objects can be modified without affecting other aspects of the program, it is also easier to update and change programs written in object-oriented languages. As software programs have grown larger over the years, OOP has made developing these large programs more manageable.
JAVA is also a pure 99.99% Object Oriented Programming Language.
There are also a many hundreds language that based on OOP;list are following below


  • C++
  • C#
  • Delphi
  • PHP
  • Python
  • Visual Basic
There are 4 major principle of OOP
  • Inheritance
  • Encapsulation
  • Polymorphism
  • Abstraction
these are core concept of OOP ,if any say that he is a Programmer and don't know the these principal concept then he is Liar and fake telling with you... 

Lets try to understand the idea of OOP by real world story:


To help you understand objects and their contents,let’s begin with a simple analogy. Suppose you want to drive a car and make it go faster by pressing its accelerator pedal. What must happen before you can do this? Well, before you can drive a car, someone has to design it.
A car typically begins as engineering drawings, similar to the blue prints that describe the design of a house (this is Classes in OOP).When we implement car using this map or blue print then this is called Object. Car can do many more function or action like start the engine turn on the AC etc etc( these are Method/Function in classes).
Every car inherit or have he functionality of previous model( This Concept is Inheritance). These drawings include the design for an accelerator pedal. The pedal hides from the driver the complex mechanisms that actually make the car go faster, just as the brake pedal hides the mechanisms that slow the car, and the steering wheel “hides” the mechanisms that turn the car. This enables people with little or no knowledge of how engines, braking and steering mechanisms work to drive a car easily(this is Encapsulation and data abstraction concept of OOP).


Each and Every class have 2 thing in it
1) Method/Function
2)Attribute /Data Object.



We hope to understand the ideal logy of OOP but when we will learning new chapter of programming then all the concept that we have already mentioned  
help you to make further more strong.


No comments:

Post a Comment