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...

The Project Explorer contains a list of the currently open Access databases that contain VBA procedures and a list of modules within the current database

Indicate whether the statement is true or false

Computer Science & Information Technology

Which is not a common issue when troubleshooting wireless networks?

A) Protocol conversion issues B) Interference issues C) Security issues D) Load issues

Computer Science & Information Technology

The default view that PowerPoint opens in is called ____ view.

A. Slide B. Normal C. Standard D. Edit

Computer Science & Information Technology

Which replication topology uses bidirectional synchronization with all members?

A. Hub and spoke B. Full mesh C. No topology D. Partial mesh

Computer Science & Information Technology