syntax for writing private method in a interface
Answer Posted / sudhir kunnure
we create interface for inherite to classes, and Private
methods can only access within class not inherited class.so
you cannot create Private methods in Interface.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is iqueryable?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
What is polymorphism c# example?
What is difference between field and property in c#?
Can I define my own exceptions?
What are the 3 types of comments in c#?
How can it prevents DLL Hell assembly versioning in .NET?
Are arrays value types or reference types?
Can scriptable objects have methods?
What are strong name assemblies?
Why static constructor is parameterless in c#?
What is out in c#?
Is stringbuilder better than string?
What is msil in c#?
How to put assembly in gac?