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


How to call a function when a class implements 2 interfaces and function is present in both interfaces?

Answers were Sorted based on User's Feedback



How to call a function when a class implements 2 interfaces and function is present in both interfac..

Answer / maruthi

interface name . function name

Is This Answer Correct ?    10 Yes 1 No

How to call a function when a class implements 2 interfaces and function is present in both interfac..

Answer / mahesh babu ummaneni

we have two interfaces inclass thet two interfaces having same method name the time wecan call based on interface

example
interface1
{
add()
}
interface2
{
add()
sub()
}
class classname:interface1,interface2
{
'now wewant call the method add from interface1
interface1.add()
'now we want call the method add from interface2
interface2.add()
'now we want call the method sub() from interface2
interface2.sub()
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the concept of strong names?

0 Answers  


What is a float?

0 Answers  


How to handle exceptions that are raised in a component?

0 Answers   Alcatel-Lucent,


Explain the process of inheriting a class into another class?

0 Answers  


What are the access allowed for compilation units(namespace),class and structs and what are its default access?

1 Answers   TCS,


Are private class-level variables inherited?

5 Answers   HCL, Siebel Systems, Visual Soft,


Is learning c# hard?

0 Answers  


use of operator overloading of implicit & explicit operators?

1 Answers   TCS,


What are the different types of comments in c#?

0 Answers  


What is Dispose method in .NET ?

9 Answers   247Customer, KAP, TCS,


how to handle errors in sqlserver

1 Answers  


Why do we need singleton pattern in c#?

0 Answers  


Categories