Code: Select all
public void add();
Moderators: Site Manager, fjwalraven
Code: Select all
public void add();
I don't see where though?Me: Couldn't this be considered a correct answer (as a declaration in an interface)?
Admin: Yes, but the question is asking about class.
The question seeks a correct declaration for:What is the correct declaration for an abstract method 'add' accessible to any class, takes no arguments and returns nothing?
Users browsing this forum: No registered users and 14 guests