OOPS Concept In Java

OOPS:

'OOPS' means object oriented programming structure.It can be achieved by
  1. Security
  2. Reusability
  3. Memory management

OOPS principles:

  1. Encapsulation
  2. Data abstraction
  3. Inheritance
  4. Polymorphism
By using these principles we can achieve above 3 properties is called OOPS.
Based on the OOPS principles programming languages are classified into 2 types
  1. Object oriented programming language(OOPL)
  2. Object based programming language(OBPL)
  • Object oriented programming language(OOPL):
  • If any language supports all the oops principles is known as 'Object oriented programming language(OOPL)'.
    example:
    C++
    Java
    .NET
  • Object based programming language(OBPL):
  • If any language supports all the oops principles except Inheritance and dynamic Polymorphism is known as 'Object based programming language(OBPL)'.
    example:
    JavaScript
    VBScript

Object:

Object is as realtime entity, which is existing physically with some specific properties
  1. Identity
  2. Attribute
  3. Behavior
example:
class Addition
{
int x,y,z;
void add()
{
..
..
}

}
In the above example 'Addition' is as Identity.
int x,y,z is a Attributes.
void add() is a Behavior.