Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Functions and Subroutines
If a function fun() is to sometimes receive an int and sometimes a double then which of the following is the correct way of defining this function?
static void fun(object i) { ... }
static void fun(int i) { ... }
static void fun(double i, int j) { ... }
static void fun(int i, double j) { ... }
static void fun(int i, double j, ) { ... }
Show Answer
Correct Answer:
static void fun(object i) { ... }
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment