Which of the following is a correct interface?
a. interface A { void print() { }; }
b. abstract interface A { print(); }
c. abstract interface A { abstract void print() { };}
d. interface A { void print();}
d In A, the print() method in the interface is a concrete method. In B and C, the abstract keyword is used before the interface, which is wrong. The correct answer is D.
Computer Science & Information Technology
You might also like to view...
In regard to SkyDrive security levels, a setting of ________ means that your friends on Windows Live and any friends of theirs can view it
A) some friends B) my friends and their friends C) me D) friends
Computer Science & Information Technology
An absolute cell reference remains the same when it is copied or filled to other cells
Indicate whether the statement is true or false
Computer Science & Information Technology