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

Answer by Kevin Stephen Biswas for Why do we use public methods?

I think Flydog57's answer is much more complete. In my answer I will add code example in hopes of making it a bit easier to understand.Public - access modifier which determines from where your...

View Article



Answer by Flydog57 for Why do we use public methods?

The public and static keywords are unrelated.You can have a public static method. Public means that the method (or other class member (e.g., a property, a field, a delegate, an enum, an inner class))...

View Article

Why do we use public methods?

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...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images