Lect1 Odp
Lect1 Odp
Lect1 Odp
LECTURE 1
INTRODUCTION
● Encapsulation
– Encapsulation is the process of binding both
attributes and methods together within a class.
Through encapsulation, the internal details of a
class can be hidden from outside. It permits the
elements of the class to be accessed from outside
only through the interface provided by the class.
●
Data Hiding
● Data Hiding
– Typically, a class is designed such that its data
(attributes) can be accessed only by its class
methods and insulated from direct outside access.
This process of insulating an object’s data is called
data hiding or information hiding.
Message Passing