filmov
tv
Encapsulation in OOPs in Telugu | OOPs concepts | Object Oriented Programming Concepts
Показать описание
Encapsulation:
→ Wrapping up of data and methods into a single unit.
→ To avoid the access of private data members from outside the class.
Encapsulation Advantages:
→ Data Hiding - Restricts the access of some data from outside World directly.
→ Flexibility - Allows whether the data should be read-only or write-read.
Encapsulation Real-life Examples:
→ Consider a Coco-Cola vending machine. Here, both data (coca-cola bottles) and operations → (buyCocoCola()) are wrapped in a vending machine. We can treat that vending machine as a class.
#Encapsulation #ObjectOrientedProgramming #programmingline #rakesh #rake
*******************************************************
Important Links:
*******************************************************
Subscribe my YouTube channels:
*******************************************************
→ Wrapping up of data and methods into a single unit.
→ To avoid the access of private data members from outside the class.
Encapsulation Advantages:
→ Data Hiding - Restricts the access of some data from outside World directly.
→ Flexibility - Allows whether the data should be read-only or write-read.
Encapsulation Real-life Examples:
→ Consider a Coco-Cola vending machine. Here, both data (coca-cola bottles) and operations → (buyCocoCola()) are wrapped in a vending machine. We can treat that vending machine as a class.
#Encapsulation #ObjectOrientedProgramming #programmingline #rakesh #rake
*******************************************************
Important Links:
*******************************************************
Subscribe my YouTube channels:
*******************************************************