/OOP-Concept

Employee Develepment Program

Primary LanguageJava

oop_concepts

OOP Concepts

  1. Object

Form or entity.

  1. Class

Blueprint of object.

  1. Inheritance

Child have all properties (field, method) and behaviors of parents.

  1. Polymorphism

One form can be change to another form.

  1. Abstraction

Hiding internal details and showing functionality is known as abstraction.

  1. Encapsulation

This is the practice of keeping fields within a class private, then providing access to them via public methods. It’s a protective barrier that keeps the data and code safe within the class itself.

  1. Cosntructor

Method first time called when class has instantied.

  1. Overriding and Overloading

    a. Overriding : Same method in class and extends class

    b. Overloading : Same method different parameters