Question:Which of the method declarations is correct for a method named displayFacts() if the method receives an int argument? 

A public void int displayFacts() 

B public void displayFacts(int) 

C public void displayFacts(int data) 

D public void displayFacts() 

+ Answer
+ Report
Total Preview: 1286

Copyright © 2024. Powered by Intellect Software Ltd