Answer Posted / dipal mehta
The above one is a right answer but the reader who reads it
for referance plz Note line :
I1 i1=new sample();
i1.add();
This might confusing but It means that We have created
object of I1 interface class but with sample as a assigned
object which is valic in this case.
Now call of i1.add() will call the method of interface I1
which points to or defined in Sample class
This will more clearer if you will append two or three more
simple methods like subtract() and try to call it as above
one which actually a part of Mostly used Multiple
Inheritance funda.
personally speaking it will benefitial to you if try
yourself
Hope readers like tips
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How com+ related to the dna architecture?
How is meant by dll in .net?
Explain About GDI object ?
Explain the difference between static page and dynamic page?
What is view state in .net?
Explain me why do we use msmq?
What is lazy initialization?
Explain the code behind wors and contrast that using the inline style.
What are code contracts?
Different between .net & j2ee ?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
How can you assign an rgb color to a system.drawing.color object?
What is smart navigation in .net?
What does .net stand for?
what is dotnet architecture? can anyone explain that.