Which of the following class definitions defines a legal abstract class?
a. class A { abstract void unfinished() { } }
b. class A { abstract void unfinished(); }
c. abstract class A { abstract void unfinished(); }
d. public class abstract A { abstract void unfinished(); }
c In A and B, abstract keyword is missing for the class. In D, class and abstract are in a wrong order. The correct answer is C.
Computer Science & Information Technology
You might also like to view...
Share permissions are more granular than Security permissions
Indicate whether the statement is true or false
Computer Science & Information Technology
Numeric assignments can include arithmetic calculations.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology