C#C
C#2y ago
204 replies
asianfxilure

Properly understanding Public Static

^^^ title, I've got a test coming up, I avoided understanding this last test and skipped the optional questions with them ... I think I'd rather try to understand them now.

And so, For example;
public static EX1(double x)
{
  return x*x;
}


What purpose does "double x" serve us here?
Or, better yet. if it were to be broken down by each syntax, used & explained.

Sorry if it sounds like a dumb question, That's why I came here to ask!

P.S if the code is missing something, I apologize ... our teacher makes us learn on pen and paper so I don't always know how to properly write stuff on a console app.
Was this page helpful?