Upgrade to access all content for this subject
Consider the following class.
public abstract class Business
private String name= "";
public abstract int getProfit();
public String getName()
Which of the following is a TRUE statement about class Business?
Any class that extends class Business must implement its own getName() method.
You can instantiate an object of type Business.
The code will not compile correctly because it is missing the implementation of getProfit().
The code after getName() is incorrect because abstract classes can not contain method implementation.
Any class that extends class Business must implement its own getProfit() method.