Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Object Oriented Programming with Example

To understand Object Oriented Programming, i have written an explanation of Object Oriented Programming Concept in Java at http://www.javasprint.com/java_training_tutorial_blog/object_oriented_programming_oops.htm . Its an explanation with example and diagrams. Hope it helps.

Comments

  • rahulyadavansrahulyadavans Member Posts: 7
    Object oriented programming has following content-

    # Class
    # Object
    # Inheritance
    # polymorphism
    # Abstraction
    # Encapsulation

    # Class- "Class is a logical entity "
    For example- Vehicle

    # Object- "Object is a real world entity"
    For example- Scorpio car

    # Inheritance- "Inheritance is a mechanism in which one object acquire
    all the properties and behavior of parent object.
    For example- class Car extends Vehicle {}

    # Polymophism- "One thing having several form "
    For example- Door
    Every door has different height, width like room door, office door, main door

    # Abstraction- "Abstraction is the process of hiding implementation detail and showing essential features only.There two way to achieve abstraction-
    -Abstract class 0 to 100% abstration
    -Interface 100% abstraction
    For example- Mobile
    You know how to use mobile and don't care about backend process.

    #Encapsulation- "Encapsulation is the process of binding the data into a single unit.

    o It is achieved via declaring the instance variables as a private and accesses them through public method.

    For all OOPs example you can go on
  • rahulyadavansrahulyadavans Member Posts: 7
    Object oriented programming has following content-

    # Class
    # Object
    # Inheritance
    # polymorphism
    # Abstraction
    # Encapsulation

    # Class- "Class is a logical entity "
    For example- Vehicle

    # Object- "Object is a real world entity"
    For example- Scorpio car

    # Inheritance- "Inheritance is a mechanism in which one object acquire
    all the properties and behavior of parent object.
    For example- class Car extends Vehicle {}

    # Polymophism- "One thing having several form "
    For example- Door
    Every door has different height, width like room door, office door, main door

    # Abstraction- "Abstraction is the process of hiding implementation detail and showing essential features only.There two way to achieve abstraction-
    -Abstract class 0 to 100% abstration
    -Interface 100% abstraction
    For example- Mobile
    You know how to use mobile and don't care about backend process.

    #Encapsulation- "Encapsulation is the process of binding the data into a single unit.

    o It is achieved via declaring the instance variables as a private and accesses them through public method.

    For all OOPs example you can go on
  • rahulyadavansrahulyadavans Member Posts: 7
    Object oriented programming has following content-

    # Class
    # Object
    # Inheritance
    # polymorphism
    # Abstraction
    # Encapsulation

    # Class- "Class is a logical entity "
    For example- Vehicle

    # Object- "Object is a real world entity"
    For example- Scorpio car

    # Inheritance- "Inheritance is a mechanism in which one object acquire
    all the properties and behavior of parent object.
    For example- class Car extends Vehicle {}

    # Polymophism- "One thing having several form "
    For example- Door
    Every door has different height, width like room door, office door, main door

    # Abstraction- "Abstraction is the process of hiding implementation detail and showing essential features only.There two way to achieve abstraction-
    -Abstract class 0 to 100% abstration
    -Interface 100% abstraction
    For example- Mobile
    You know how to use mobile and don't care about backend process.

    #Encapsulation- "Encapsulation is the process of binding the data into a single unit.

    o It is achieved via declaring the instance variables as a private and accesses them through public method.

    For all OOPs example you can go on OOPs concenpts
Sign In or Register to comment.