Question: JAVA Goal: Learn how to use the super keyword. Assignment: In a content management system, there's a base class named Article with two attributes: a
JAVA
Goal: Learn how to use the super keyword.
Assignment: In a content management system, there's a base class named Article with two attributes: a String title, and a String author. This class also includes a method displayBasicInfo that prints out the article's title and author.
The subclass FeaturedArticle extends Article by including an additional String attribute category, indicating the category under which the featured article falls. Use the super keyword to complete the following definition of the FeaturedArticle class method displayDetailedInfo; this method should first call the parent class displayBasicInfo method and then print the category attribute.
public void displayDetailedInfo
write your code here
System.out.printlnCategory: category;
Write your code below
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
