Q:

What is the difference between public static, public and static methods in c#?

0

What is the difference between public static, public and static methods in c#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

public: public by itself means this is an instance-based member that is accessible to external callers (those with access to the type itself).

static: static by itself means the member is not instance-based. You can call it without needing any particular instance (or even any instance at all). Without an accessibility qualifier, non-public is assumed – so the member will not be accessible to external callers

public static: public static is a static method that is accessible to external callers.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is a Virtual Method in C#?... >>
<< How do I calculate someone’s age in C#?...