Object oriented programming(OOP) is a programming paradigm(like aspect oriented,imperative, declarative , event driven).
Encapsulation: creates a boundary around an object to hide its iplementation details.
Inheritance:A class can inherit from another class to reuse its functionality instead of writing it from stratch.
Ploymorphism: a variable of type xcan refer to an object that subclasses x.
No comments:
Post a Comment