click below
click below
Normal Size Small Size show me how
OOP
Object Oriented Programming
| Term | Definition |
|---|---|
| object oriented programming system | object, class, inheritance, polymorphism, abstraction, encapsulation |
| object | entity with state and behavior |
| class | blueprint for objects, data types and methods |
| object oriented pillars | inheritance, polymorphism, encapsulation, abstraction |
| inheritance | gives one class access to states and behaviors of another but can extend only one class |
| polymorphism | means to take on many forms and refers to an is a relationship |
| method overloading | multiple methods has same name but different parameters |
| method overriding | child class has same methods as parent class |
| encapsulation | puts code and data together, makes all data types private and uses getters and setters |
| abstraction | hide implementation and show functionality |
| generalization | gets shared methods from two or more classes and puts them in a generalized class |
| specialization | creates new subclasses into an existing class |
| protected keyword | only visible within current and child classes |
| private keyword | visible within current class |
| public | visible to all classes |