Java Tutorial

Java - OOPs

In an IT we have two types of programming models (paradigms) are available. They are procedure oriented programming language and object oriented programming language

If we represent the data using procedural oriented programming languages then there is no security for the data which we represent. For example when we represent the data of a student in C language using structures concept, the student data can be accessed by all the functions which we write as a part of C program. If one of the functions manipulates or damages the data then we are loosing correction-less (integrity) of the data. Examples of procedure oriented programming languages are FORTRON, COBOL, PASCAL, BASIC, C, etc.

Java OOPS

When we represent the data in object oriented programming language we get the security. Examples of object oriented programming languages are LISP, ADA, ALGOL, SMALLTALK, OBJECT COBOL, OBJECT PASCAL, Cpp, JAVA, DOT NET, etc. In order to say any language is an object oriented programming language it has to satisfy 8 principles of OOPs.

OOPs Principals:

  1. Class
  2. Object
  3. Data Abstraction
  4. Data Encapsulation
  5. Inheritance
  6. Polymorphism
  7. Dynamic Binding
  8. Message Passing