Which one of these declarations is a valid method declaration? Select the one correct answer. (a) void

Question:

Which one of these declarations is a valid method declaration?

Select the one correct answer.

(a) void method1 { /* ... */ }

(b) void method2() { /* ... */ }

(c) void method3(void) { /* ... */ }

(d) method4() { /* ... */ }

(e) method5(void) { /* ... */ }

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: