Constructors And Polymorphism
Objective:
This section will help you to learn what is constructor and how its work.
Topics:
- What is a Constructor, When and Why do we create Constructor and How does a Constructor work?
- Constructor for non-static variable initialization and static initializer block for static variable initialization.
- Argument and No-Arg based constructor, Explicit constructor chaining, constructor overloading.
- Polymorphism – compile-time polymorphism (method overloading) and run-time polymorphism (method overriding) and @Override Annotation.
- When to do we need to do compile-time polymorphism (method overloading) and How do they work?
- When to do we need to do run-time polymorphism (method overriding) and How do they work?
