filmov
tv
Lesson - 1 : OOPs - Data hiding, Abstraction and Encapsulation In OOPs
Показать описание
Data Hiding : Our internal data should not go out directly that is outside person can’t access our internal data directly. By using private modifier we can implement data hiding.
Abstraction : Hide internal implementation and just highlight the set of services, is called abstraction. By using abstract classes and interfaces we can implement abstraction.
Encapsulation : It is the process of Encapsulating data and corresponding methods into a single module. If any java class follows data hiding and abstraction such type of class is said to be encapsulated class.
Encapsulation=Datahiding+Abstraction
Abstraction : Hide internal implementation and just highlight the set of services, is called abstraction. By using abstract classes and interfaces we can implement abstraction.
Encapsulation : It is the process of Encapsulating data and corresponding methods into a single module. If any java class follows data hiding and abstraction such type of class is said to be encapsulated class.
Encapsulation=Datahiding+Abstraction