Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / mohit bhandari

Yes we can create an empty interface.Empty interface is
called a marker interface.These interfaces are generally
used as way of identifying a group of types. If this
identification will occur at runtime, the correct way to
accomplish this is to use a custom attribute. Use the
presence or absence of the attribute, or the attribute's
properties, to identify the target types.As there is no
method in marker interface,So we don't need to call it.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clr in c#?

811


How big is a float?

871


How do you prevent a class from being inherited?

875


What is the use of the dispose method in C# ?

925


What is uint c#?

860


When should I use static in C#?

943


Why do we use reflection in c#?

893


Explain the functionalities of satellite assembly?

913


List down the differences between “dispose” and “finalize” methods in c#.

804


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

895


What does || mean in programming?

914


What is a scope in c#?

856


List down the differences between public, static and void keywords?

833


When would you use generics in your code c#?

872


What is fcl in c#?

837