Quantcast
Channel: Why do we use public methods? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Why do we use public methods?

$
0
0

I have a question regarding public and static methods. I am new to coding C# and I know that public methods can only be accessed using an object. However, static methods can be accessed without an object of the class. But what is the point of using a public method? Why not just always use a static method?


Viewing all articles
Browse latest Browse all 3

Trending Articles