Inheritance - Overriding Methods QuizS2C Home « Inheritance - Overriding Methods Quiz
OO Concepts Quiz 5
The quiz below tests your knowledge of the material learnt in OO Concepts - Lesson 5 - Overriding Methods.
Question 1 : What happens to the following code snippet at compile time?
public class A {
public void a() {
}
}
public class B extends A {
public static void a() {
}
}
- We can't <i>override</i> an instance method with a static method, the compiler gets upset.
Quiz Progress Bar
Quiz 1
Access Modifiers

Quiz 2
Protecting Our Data

Quiz 3
Inheritance - Basics

Quiz 4
Inheritance - extends

Quiz 6
Inheritance - Concepts

Quiz 7
Inheritance - super

Quiz 8
Abstraction

Quiz 9
Polymorphism

Quiz 10
Interfaces

Quiz 11
Interfaces - Default Methods

Quiz 12
Deeper Into Polymorphism

Quiz 13
Functional Interfaces

Quiz 14
Lambda Expressions

Quiz 15
Method References

Quiz 16
Nested Static Classes

Quiz 17
Nested Inner Classes

Quiz 18
Anonymous Inner Classes

Quiz 19
Object
Superclass

Quiz 20
Checking Object Equality

What's Next?
In the next quiz we test your knowledge of inheritance concepts.