Multiple Choice Question

Quiz Guidelines



What is the correct declaration for an abstract method 'add' accessible to any class, takes no arguments and returns nothing? (Use only one space between words)

Select 1 option

A. public void add(); 
B. abstract add(); 
C. abstract null add(); 
D. abstract public void add(){ } 
E. abstract public void add() throws Exception; 

Q&A Set: