49.7k views
2 votes
If a class contains an abstract method ________. a. the method will only have a header, but not a body, and will end with a semicolon b. the method cannot be overridden in subclasses c. you must create an instance of the class d. All of these are true.

User Doody P
by
4.6k points

1 Answer

4 votes

Answer: A) the method will have only a header, but not a body, and end with a semicolon

Step-by-step explanation:

Abstract method is defined as declaration method i.e. header without any implementation technique. It does not have any method body and ending with semicolon.It depends on abstract class to include abstract method or not.

  • Other options are incorrect because methods can be overridden for implementation in subclass. There is not any accurate requirement of instance for creation of class.
  • Thus, the correct option is option(A).

User Nicolas Brown
by
5.5k points