Quantcast
Channel: Techie Stuffs - Blogs on technology
Viewing all articles
Browse latest Browse all 28

Notes 1 - Object Oriented Programming (OOPL)

$
0
0
Quick notes on OOPL in Java

  • OOP- Directly represents real time objects
  • PIE (Polymorphism, Inheritance, Encapsulation) - are the 3 pillars of OOPL

Polymorphism

It is the capability of an action or method to do different things based on the object that it is acting upon.

Three types of Polymorphism in Java

  1. Overlaoding
  2. Overriding
  3. Dynamic Method Binding
Inheritnace in Java

This is the capability of a class to use the properties and methods of another class while assing its own functionality.

Java uses extends  keyword.

Interfaces
Abstract Classes

Encapsulation

It is the ability of an object to be a contained for related properties and methods(function)

POJOS, bean classes.

Viewing all articles
Browse latest Browse all 28

Trending Articles