Object Oriented Programming Flashcards
What is UML?
Unified Modeling Language. UML helps you communicate the structure of your application to customers, managers, or other developers
What is a class diagram?
A class diagram provides an overview of your class, including variables and methods.
What is Inheritance?
Inheritance is when one class extends another class to reuse or build upon the inherited class’s behavior.
What is a super class?
A super class is the class that is being inherited from.
What is a sub class?
A sub class is a class that is inheriting from another class.
What is Polymorphism?
Polymorphism occurs when one class can stand in for another class.
What is Encapsulation?
Encapsulation is when you separate or hide one part of your code from the rest of the code.
What is an Is-A relationship?
Is-A refers to inheritance. For example a dog is a pet.
What is a Has-A relationship?
Has-A refers to composition or aggregation. For example, a dog has a nose.
What is delegation?
Delegation is when an object needs to perform a certain task. Instead of doing that task directly, it asks another object to handle that task.