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. abstract class A { abstract void unfinished(); }
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...
An emerging standard named ____________ uses a reversible connector named____________
a. USB 3.0 / USB 2.0 b. USB 3.1 / HDMI c. Thunderbolt / DisplayPort d. USB 3.1 / USB-C
Computer Science & Information Technology
If data in the main program is needed by a subprogram, the value of that data is passed to, or __________ by, the subprogram.
Fill in the blank(s) with correct word
Computer Science & Information Technology