Limited access

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()
  {
    return name;
  }
}

Which of the following is a TRUE statement about class Business?

A

Any class that extends class Business must implement its own getName() method.

B

You can instantiate an object of type Business.

C

The code will not compile correctly because it is missing the implementation of getProfit().

D

The code after getName() is incorrect because abstract classes can not contain method implementation.

E

Any class that extends class Business must implement its own getProfit() method.

Select an assignment template