Saturday 7 January 2017

Object Oriented Programming Java


                                                 

- Object Oriented Programming is at the core of java. All java            programs are object oriented unlike c++ where it was an option.

- The computer program consist of two elements : code and data.
   A program can be conceptually organized around its code or
   around its data , i.e some program are written around " What is 
   Happening " and other are written around  " Who is being 
   Affected " .
- The first one is called as Process Oriented Programming . 
   This approach characterizes a program as a series of linear
   steps. The process oriented programming can be thought of as
   Code Acting On Data .
-  Languages such as C applies this model but its biggest 
   disadvantage is that this model suffers as the program grows 
   larger and more complex.
-  The second one called as Object Oriented Programming .
    To manage the problems occurring in procedure oriented                 programming , object oriented approach is used.
-   Object Oriented Programming  organizes a program around
     its data and a set of  well defined interfaces of that data. 
-   Object Oriented Program can be characterized as Data                      Controlling The Access To Code.

Abstraction

An essential element of object oriented programming is 
Abstraction. Its refers to hiding the complexity of the code from the users. The abstraction is managed through Hierarchical  Classification .

It allows you to layer the semantics of complex systems , breaking them into more manageable pieces.We can manage the complexity of computer system through the use of  hierarchical abstraction.

The Essence Of Object Oriented Programming 

- The data from traditional process oriented program  can be                transformed by abstraction into its component objects .
- A sequence of process steps can become a collection of messages   b/w these objects. 
- Thus , each of these objects describes its own unique behavior.
   These objects can be treated as concrete entities that respond to
   messages telling them to do something.
-  This is the essence of object oriented programming. 

                                                                   By: Knowledge Bits

No comments:

Post a Comment

Video of the Day

Contact us

Name

Email *

Message *