|
INTERVIEW QUESTIONS
MICROSOFT
C#
DETAILS
Question: Why multiple Inheritance is not possible in C#?
Answer: Multiple Inheritance is possible in C++, but its not possible in Java, and C#.
what we are read above those are all we know, but as per my knowledge, in C++ to resolve multiple inheritance we are using "this pointer". But in C# there is no pointer concept. In such way, the architectures using the interface concept. To resolving the ambiguity "this pointer" concept used in c++.
Offcourse it not absolutely correct, but its my idea only. If you are agree with my view then follow it, else leave it.
|
|
|
Category |
C# Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9779 users |
Added on |
7/28/2011 |
Views |
72157 |
Rate it! |
|
|
Question:
Why multiple Inheritance is not possible in C#?
Answer:
Multiple Inheritance is possible in C++, but its not possible in Java, and C#.
what we are read above those are all we know, but as per my knowledge, in C++ to resolve multiple inheritance we are using "this pointer". But in C# there is no pointer concept. In such way, the architectures using the interface concept. To resolving the ambiguity "this pointer" concept used in c++.
Offcourse it not absolutely correct, but its my idea only. If you are agree with my view then follow it, else leave it. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Constructor is the method which is implicitly created when ever a class is instantiated. Why?
|
View Answer
|
|
What Datatypes does the RangeValidator Control support?
|
View Answer
|
|
Where we can use DLL made in C#.Net
|
View Answer
|
|
How can objects be late bound in .NET?
|
View Answer
|
|
How to find exceptions in database
|
View Answer
|
|
How we can use inheritance and polymorphisms in c# programming?
|
View Answer
|
|
Can we use Friend Classes or functions in C# the way we use it in C++
|
View Answer
|
|
Can u create the instance for abstract classes
|
View Answer
|
|
Which keyword is used of specify a class that cannot inherit by other class?
|
View Answer
|
|
What is protected internal class in C#
|
View Answer
|
|
What is wrapper class?is it available in c#?
|
View Answer
|
|
Which debugging window allows you to see all the name and values of all the variables in scope?
|
View Answer
|
|
Which debugging window allows you to see the methods called in the order they were called?
|
View Answer
|
|
You have an event handler called MyEvent and you want to link the click event of control, MyButton, to use MyEvent, what is the code that will like them together?
|
View Answer
|
|
What is the difference between shadow and override
|
View Answer
|
|
How do I make a DLL in C#?
|
View Answer
|
|
Does C# support C type macros?
|
View Answer
|
|
Does C# support templates?
|
View Answer
|
|
How do I declare inout arguments in C#?
|
View Answer
|
|
How do destructors and garbage collection work in C#?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All C# Interview Questions & Answers - Exam Mode /
Learning Mode
|