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 console write in c#?
What is getenumerator?
How do you read an Excel sheet in C#?
Explain the access modifiers in c#?
What is reference types in c#?
What does addressof operator do in background ?
What is a destructor in c#?
explain the nature of the assembly work?
Explain the 3 types of properties in c# with an example?
Can we create multiple constructors?
Define a class and an object?
Is array a collection c#?
What is the difference between list and arraylist c#?
What is variable and its classification?
What is an inheritance in c#?