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...

If u declare two interfaces withsame methodnmae .prototype
how can u call the particular method from class?

Answer Posted / n.v.s prasad

By using explicit interface declaration which is nothing
but (Interfacename.Methodname) but the problem is method
available to interface not for class(if you careate
instance of your class we are not able to access method
which we implemented above in our class, so method is
availble to interface only)

Note:If you want to acess method by instance of your class
we need to cast our instance to 'interface'
((instance)interfacename).methodname--->Possible
instance.methodname ---->Not possible

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between == and object.equals?

918


What is the use of properties window?

921


Is string null or empty?

846


What is string class in c#?

843


Can we declare class as protected?

916


What is the purpose of namespace in c#?

809


What is array and its types in c#?

870


Enlist some of the properties of a thread class?

869


Is collection a data structure?

895


How many kinds of elements an array can have?

866


What is stringwriter c#?

767


What do you mean by jagged array?

860


What are boxing and unboxing?

866


Can we set image Source dynamically using C# in WPF application?

1005


What is the difference between // comments, /* */ comments and /// comments?

796