Question: Which one of these declarations is a valid method declaration? Select the one correct answer. (a) void method1 { /* ... */ } (b) void
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) { /* ... */ }
Step by Step Solution
3.36 Rating (162 Votes )
There are 3 Steps involved in it
b Only b is a valid method declaration Methods must specify a r... View full answer
Get step-by-step solutions from verified subject matter experts
