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 difference between write and writeline?
How does c# achieve polymorphism?
Can abstract class have constructor?
Define constructors
What is an assembly qualified name
Can you specify nested classes as partial classes?
Explain about finalize method?
What are virtual classes in c#?
What is serialization in c#?
What is the use of flag in c#?
What is the C# syntax to catch any possible exception?
What is the use of iqueryable in c#?
What are Indexers in C#?
What is datatable and dataset in c#?
Can a struct inherit from another struct or class in c#?