Professional Documents
Culture Documents
Week 4 OOP
Week 4 OOP
For Example:
1. Dog is an Object.
2. Dog state :Name, Color, Age
3. Dog Behavior: Bark, Sleep, Running, eat
Vehicle
Human
Student Techer
Customer
• Binding (or wrapping) code and data together into a single unit are known as encapsulation. For
example, a capsule, it is wrapped with different medicines.
• A java class is the example of encapsulation.
• Java bean is the fully encapsulated class because all the data members are private here.
Coupling: