Consider the following class hierarchy and define a class “Publication” which has a title and a price using Java.
MadhawaRathnayaka/Inheritnce_1
Consider the following class hierarchy and define a class “Publication” which has a title and a price using Java.
Java