5 Questions
What is another name for dynamic or runtime polymorphism?
Late binding
Which feature allows a subclass to provide a specific implementation of a method already provided by its superclass?
Overriding
What must be the same in method overriding for dynamic polymorphism?
Method name and method signature
Which type of polymorphism is method overriding an example of?
Dynamic polymorphism
What does dynamic or runtime polymorphism require in terms of method implementation?
'Late binding' of the method implementation
Study Notes
Object-Oriented Programming (OOP) Introduction
- By the end of this lecture, students will be able to understand Polymorphism, Method Overriding, Method Overloading, Overriding vs Overloading, and the Tostring() Method.
Polymorphism
- Polymorphism is a Greek word, meaning "one name many forms" or "many forms of one name".
- It means one object has multiple forms or has one name with multiple functionalities.
- "Poly" means many and "morph" means forms.
- Polymorphism provides the ability for a class to have multiple implementations with the same name.
- It is one of the core principles of Object-Oriented Programming, along with encapsulation and inheritance.
Key Concepts
- Method Overriding
- Method Overloading
- Overriding vs Overloading
- Tostring() Method
- Recursion Concept
Explore the fundamentals of Object Oriented Programming including polymorphism, method overriding, method overloading, and the concept of recursion. This lecture aims to provide a comprehensive understanding of these key principles in OOP.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free