Answer Posted / gp_bellamkonda
When we use the Multiple inherutance,we use more than one
class.Suppose class A and class B are base classes and
class c is is multiple inherting it.it may be possible that
this function with same name and same signature can present
in both class A and Class B .At this time how the compiler
will know which function it should take wherether from
class A or class B.
So Multiple inheritance won't work.
To avoid this problem we use Interface..... it means in
interface we just declare a function and in the derived
class we give the definition as per the requirement...means
function should be abstract ... and in interface all funcion
[method] should abstract
| Is This Answer Correct ? | 36 Yes | 6 No |
Post New Answer View All Answers
What is foreach loop in c#?
What is cshtml extension?
Explain the difference between Metadata and Manifest
Are c# destructors the same as c++ destructors?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
What is console programming language?
What are the differences between static, public and void in c#?
What is the purpose of a console table?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What's the difference between System.String and System..StringBuilder in C#?
What is form feed and carriage return?
What is console used for?
Why is c# used?
how to print invert pyramid in c#
Who is a accessibility modifier “protected internal†available to ?