Exploring the Future Potential of AI-Enabled Smartphone Processors
Oops
1. Page 1
OOPS Concepts in Java
By Rohit Mundra Varun Kumar
Santosh Dora Shiva krishna
Murali krishnan
2. Page 2
OOP "Object-Oriented Programming” refers to
a programming methodology based on
objects, instead of just functions and
procedures.
1) Class
2) Object
3) Abstraction
4) Encapsulation
5) Inheritance
6) Polymorphism
3. Page 3
Types of Inheritance
There are 5 types of inheritance as shown
below.
1.Single Inheritance
2.Multilevel Inheritance
3.Multiple Inheritance
4.Hierarchical Inheritance
5.Hybrid Inheritance
11. Page 11
• Encapsulation is the technique of making
the fields in a class private and providing
access to the fields via public methods. If
a field is declared private, it cannot be
accessed by anyone outside the class,
thereby hiding the fields within the class.
For this reason, encapsulation is also
referred to as data hiding.
Encapsulation Inheritance