Create an abstract class AbstractClass with an abstract method printMessage. Create two subclasses each implementing the method
Fantastic news! We've Found the answer you've been seeking!
Question:
Create an abstract class AbstractClass with an abstract method printMessage. Create two subclasses each implementing the method printMessage that prints "This is first subclass "and " This is second subclass" respectively. Call the methods printMessage by creating an object for each subclass.
Related Book For
Posted Date: