Chapter 8 - Inheritance
-----------------------
inheritance basics
using super
creating a multilevel hierarchy
when constructors are executed
method overriding
dynamic method dispatch
using abstract classes
using final with inheritance
local variable type inference and inheritance
the object class
> What is inheritance?
Develop an example to demonstrate the concept of inheritance,
with diagram and code snippet.
> List and explain the types of inheritance with diagram and code snippet.
> Develop a program to demonstrate the order of execution of constructors.
> What is a super keyword?
Develop examples to show that super class is used to refer to
properties of super class in the subclass.
> Develop a program to demonstrate the super class constructor may be
accessed by using super keyword in the sub class.
> Develop a program to demonstrate that super class methods may by called
by using super keyword in the subclass.
> Develop an example to show that superclass variable can reference
a sub class object.
> What is method overriding?
Develop a program to demonstrate method overriding.
> What is an abstract class?
Develop a program to demonstrate the concept of abstract class.
> Develop a program to demonstrate the concept of local variable type inference
w.r.t inheritance.
> Explain the significance of [Link] class.
List and explain the methods in Object class.
Chapter 9 - interfaces
----------------------
Interfaces
default interface methods
use static methods in interface
private interface methods
> Write general syntax of interface.
Develop Calculator interface with methods add, sub, multiply, divide and modulo.
Develop implementation class.
> What is an abstract class.
Develop an example to demonstrate the concept of abstract class.
> What is nested interface.
Develop a class which uses nested interface.
> Develop an interface called as Stack with push and pop methods.
Develop a class to implement the methods of Stack interface.
> Explain variables in interfaces.
Develop a code snippet to demonstrate the concept.
> Develop a set of 2 interfaces, where one interface extends another interface.
Develop a class to implement methods of 2 interfaces.
> What are default interface methods?
Design and develop a code snippet to demonstrate default method in interface.
> Design and develop a program to demonstrate static method in an interface.
> Explain the concept of private method in an interface.