top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What are the restrictions of static methods in C#?

+1 vote
69 views
What are the restrictions of static methods in C#?
posted Apr 24, 2017 by Sachin

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Static Method:

a. Access only static type data (static type instance variable).

b. Call only static method ,if non-static then compile time error.

c.No need the class object to call the static method.

d.Cant use this and super keyword otherwise compile time error.

answer Apr 27, 2017 by Manikandan J
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...