Posts

Showing posts from January, 2024

OOPs Concept: Inheritance

Image
 Inheritance Process in which child class inherits the property of Parents class. Super Class/Base Class /Parent Class The class whose features are inherited. Sub Class/ Derived Class / Child Class The class which inherits other class.

OOPs Concept: Abstraction

Image
  Abstraction Hiding => Implementation Showing => Features On ATM Screen , Users see only option , here user doesn't know internal process. Example : ATM Screen  Withdraw  Balance Check

OOPs Concept: Encapsulation

Image
  Encapsulation It is process of wrapping up data member & methods together into a single unit. Every Java Class is an example of encapsulation. Two ways of achieving Encapsulation:                  a) Declaring the instance variable : as private                b)  Provide public setter & getter method