![]() |
|
| vb / asp.net Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too. |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 | ADO.net - Why can't we use Multiple inheritance Why can't we use Multiple inheritance and garbage collector paralelly in .net |
| | |
| | #2 (permalink) |
| Junior Member Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 | In Object-Oriented Programming you might heard about the problem called Diomand Problem.Diomand problem is ambigutiy that arise when Class B and Class C inherits from Class A and now if Class D inherits from both Class B and C . Now if Class D instant called method which is defined in A ( Not overriden in Class D) and same method Overriden in Class B and Class C Differently than compiler does not recognized from which class does it inherits. To over come this issue OOPS language like Java, C# restrict multipule inheritance in C#, Java. If you have to implement multiple inheritance in Java and C# than you have to implement interface and define all methods and member of that interface |
| | |
![]() |
| Tags |
| adonet , inheritance , multiple |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple inheritance - objects contain howmany multiply inherited ancestor? | radhika_btech | ds. c , c++ Interview / Technical Questions | 2 | 14-03-07 08:07 PM |
| J2EE - Why java does not support Multiple Inheritance? | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 07:07 PM |
| J2EE - How can you do multiple inheritance in Java | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 03:08 PM |
| J2EE - How can you achieve Multiple Inheritance in Java? | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 02:43 PM |
| J2EE - Why does not support multiple Inheritance | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 02:37 PM |
| More Interview Questions Here... |