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
What can you do as a .net developer?
What is a class level variable in c#?
What does string format do?
What are the Features in .net framework 1.1
How does array sort work?
What are actions in c#?
What are the differences between static, public and void in c#?
Who is a accessibility modifier “protected internal†available to ?
Why is ienumerable used?
Where are value types stored in c#?
Why we use oops in c#?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
Can we have only “try” block without “catch” block in c#?
Is multiple inheritance possible in c#?
Why do we need to call CG.SupressFinalize?