Groovy Quiz 26 | Inheritance & Method Overriding


Reference video | Groovy Playground


1 Point for every correct answer | Let’s Get Started

1.

Inheritance in Object-Oriented Programming is the process where one class acquires properties (methods and fields) from another class

 
 

2.

What is the keyword used for inheritance

 
 
 
 

3.

When we have a function with the same name in the Parent and Child class. When calling the function via an object, the child class function is called instead of parent class function. This phenomenon is called Method Overriding

 
 

5