top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the restrictions of static methods in C#?

+1 vote
185 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
...