click below
click below
Normal Size Small Size show me how
Polymorphism Quiz
Quiz 1
| Term | Definition |
|---|---|
| In your own words, explain Polymorphism. | In coding, it means different objects can respond to the same method call in their own way. |
| whats the difference between method overloading and method overriding | Overloading: Same method name, different parameters (compile-time). Overriding: Child class replaces parent method behavior (run-time). |
| explain inheritance in coding for a beginner | Inheritance = one class gets stuff from another class. |
| difference between composition and aggregation | Both are “has-a” relationships, but Aggregation = weak ownership Composition = strong ownership |
| what is an abstract class | An abstract class is a blueprint, not a real object. |
| difference a abstract method and an virtual method | Big difference (one line) 👉 Abstract methods must be overridden. 👉 Virtual methods can be overridden. |
| difference between an interface and a class | 👉 A class is what something is. 👉 An interface is what something can do. |