Encapsulation: Prevents access to implementation details.
example: private methods / member variables inside an interface.
Abstraction: allows making relevant information visible. Abstraction can be done by using Abstract keyword to the classes.
example: public methods or data with in interfaces / abstract classes.
example: private methods / member variables inside an interface.
Abstraction: allows making relevant information visible. Abstraction can be done by using Abstract keyword to the classes.
example: public methods or data with in interfaces / abstract classes.
No comments:
Post a Comment