Which of the following declares an abstract method in an abstract Java class?
a. public abstract method();
b. public abstract void method();
c. public void abstract method();
d. public void method() {}
e. public abstract void method() {}
b In A, the method has no return type. In C, void and abstract are in a wrong order. In D, the abstract keyword is missing. In E, the body {} should be removed. The correct answer is B.
You might also like to view...
A ________ displays the data from the underlying table or query on more than one page
A) split form B) multi window form C) linked form D) multi-page form
What do you do as a technician if an Internet search has no relevant links on the first page?
A) Try the same search in a different search engine. B) Reboot the computer. C) Try different search terms. D) Add quotation marks before the first term and after the last term.