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

You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?

1029


What is a dbml?

847


Is c sharp and c# are same?

871


Can enum have methods c#?

835


Difference between StackPanel and RelativePanel ?

959


In gridview in editmode if we want to display information in one combobox based on

2248


What are Uses of CLR

941


What is desktop GUI application?

872


Explain types of comment in c# with examples

866


How do you remove white spaces from a string?

884


Is c# code is managed or unmanaged code?

934


What is data binding with example?

919


what class is underneath the sortedlist class?

895


What is the difference between selection and projection?

822


What is expandoobject in c#?

846