Professional Documents
Culture Documents
Object Means A Real-World Entity Such As A Pen, Chair, Table
Object Means A Real-World Entity Such As A Pen, Chair, Table
A)
Object-Oriented Programming is a paradigm that provides many
concepts, such as inheritance, data binding, polymorphism, etc.
o Object
o Class
o Inheritance
o Polymorphism
o Abstraction
o Encapsulation
inding (or wrapping) code and data together into a single unit are
known as encapsulation. For example, a capsule, it is wrapped with
different medicines.
B) Encapsulation in Java
Encapsulation in Java is a process of wrapping code and data
together into a single unit, for example, a capsule which is mixed of
several medicines.
The standard IDE's are providing the facility to generate the getters
and setters. So, it is easy and fast to create an encapsulated
class in Java.
Inheritance in Java
inheritance in Java is a mechanism in which one object acquires all
the properties and behaviors of a parent object. It is an important
part of OOPs (Object Oriented programming system).
Polymorphism