Question: Write a Java program where you can create a base class with an abstract hello() method that is overriden in a derived class. The overridden
Write a Java program where you can create a base class with an abstract hello() method that is overriden in a derived class. The overridden part of the method shall print the value of a variable a with any non zero value defined in the derived class. In the base class constructor , make a call to this method . In main() , create an object of the derived type and then call it's hello() method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
