If we want to create a static method mymethod() is to receive a string and a char and it returns a int then what is the correct way to define this method?

A. Public int static mymethod(string s, char c) {…}
B. Public int mymethod(string s, char c) {…}
C. Public static int mymethod(string s, char c) {…}
D. Public static mymethod(string s, char c) {…}
View Answer

C. Public static int mymethod(string s, char c) {…}

Leave a Comment