can we create an empty interface with no definitions? If
so, how it should be called in the class?

Answer Posted / rajat

Yes, we can create an empty interface in C#. Since the
interface does not have any method, no need to implement
any method in the class.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need dependency injection in c#?

551


How do I move from one form to another in c#?

542


Is dictionary a collection?

552


What is object array in c#?

606


What is .dbml file?

572






What are the different types of delegation?

517


Are value types sealed?

609


What is form feed in c#?

647


Is null in c#?

569


How do I create a multilanguage, single-file assembly?

579


Does c# support multilevel inheritance?

557


What is delegates in c# and uses of delegates?

547


Explain the difference between event and a delegate in c#?

608


How do I trim a space in c#?

532


Name the connections does microsoft sql server support?

554