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

Does C# supports multi-dimensional arrays?

3 Answers   Microsoft,


How do you declare an arraylist?

0 Answers  


Explain how to implement delegates in c#.net

0 Answers  


What is a int in c#?

0 Answers  


Explain the difference between passing parameters by value and passing parameters by reference with an example?

0 Answers  


What is the meaning of 0 in c#?

0 Answers  


What do you understand by an Implicit Variable?

0 Answers   CGI,


What are "class access modifiers" in C#?

0 Answers   Genpact,


Which property of the textbox cannot be changed at runtime?

0 Answers  


What is concrete class in c# with example?

0 Answers  


Explain About delegates

0 Answers   TCS,


What’s difference between Association, Aggregation and Inheritance relationships?

2 Answers   TCS,


Categories