45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




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.

ADO.net - Why can't we use Multiple inheritance

        

Reply
 
LinkBack Thread Tools Display Modes
Old 25-01-07, 07:10 PM   #1 (permalink)
Junior Member
 
preethisingh's Avatar
 
Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 preethisingh is a jewel in the rough preethisingh is a jewel in the rough preethisingh is a jewel in the rough
ADO.net - Why can't we use Multiple inheritance

Why can't we use Multiple inheritance and garbage collector paralelly in .net

preethisingh is offline Offline   Reply With Quote
Old 19-12-08, 04:19 PM   #2 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 abhishehingu is on a distinguished road
Smile Re: ADO.net - Why can't we use Multiple inheritance

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
abhishehingu is offline Offline   Reply With Quote
Reply

Tags
adonet , inheritance , multiple


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +6.5. The time now is 03:32 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0