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 is the difference between == and object.equals?
What is the use of properties window?
Is string null or empty?
What is string class in c#?
Can we declare class as protected?
What is the purpose of namespace in c#?
What is array and its types in c#?
Enlist some of the properties of a thread class?
Is collection a data structure?
How many kinds of elements an array can have?
What is stringwriter c#?
What do you mean by jagged array?
What are boxing and unboxing?
Can we set image Source dynamically using C# in WPF application?
What is the difference between // comments, /* */ comments and /// comments?