Java OOP Concepts
Java OOP Concepts:
Java is not fully Object Oriented Programing Languages Because java Provide Primitive Data types Like int,string etc.
Java Provide Following OOPS:
- Object
- Class
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
1.Object
-Object is nothing but just Blueprint Of Class Means it contain Properties And Behaviour Of Class.
example: real time Example is People, pen.
2.Class
-Class Contain Methods and Properties. so we can say that Collection of Object is nothing But Class.
3.Inheritance
-Inheritance is Process or Scenario for accessing Parent class Properties .Means access Properties and Method of Parent class into Sub Class.
4.Polymorphism
-In simple Word Polymorphism is way to Perform one Task in Multiple Different Ways. Real time Example is Speaking way of People and Birds are Different.
5.Abstraction
-Abstraction is way to hide data and just show functionality. Example is Like Mobile Phone Meassage ,Mouse etc.
6.Encapsulation
-Bind data and Code in Single unit. Example is Medical capsule and Bean class .
Comments
Post a Comment