Click here to Skip to main content
16,017,167 members

Survey Results

Is support for inheriting from two or more classes a Good or Bad thing?   [Edit]

Survey period: 10 Apr 2005 to 16 Apr 2005

We can inherit from multiple interfaces in .NET but not from multiple classes. (suggested by Kamarey)

OptionVotes% 
It's Good Thing43335.46
It depends47638.98
It's a Bad Thing31225.55



 
GeneralRe: Dr Stroustrup's opinion Pin
Nish Nishant11-Apr-05 6:02
sitebuilderNish Nishant11-Apr-05 6:02 
GeneralRe: Dr Stroustrup's opinion Pin
David Levitt (Myrddin)11-Apr-05 12:02
David Levitt (Myrddin)11-Apr-05 12:02 
GeneralRe: Dr Stroustrup's opinion Pin
Anonymous15-Apr-05 2:28
Anonymous15-Apr-05 2:28 
GeneralRe: Dr Stroustrup's opinion Pin
Nemanja Trifunovic12-Apr-05 3:10
Nemanja Trifunovic12-Apr-05 3:10 
GeneralRe: Dr Stroustrup's opinion Pin
David Wulff12-Apr-05 3:53
David Wulff12-Apr-05 3:53 
GeneralInterfaces are not substitutes for MI... Pin
Daniel Turini10-Apr-05 23:20
Daniel Turini10-Apr-05 23:20 
GeneralRe: Interfaces are not substitutes for MI... Pin
Vikram A Punathambekar11-Apr-05 2:43
Vikram A Punathambekar11-Apr-05 2:43 
GeneralRe: Interfaces are not substitutes for MI... Pin
Nemanja Trifunovic11-Apr-05 2:59
Nemanja Trifunovic11-Apr-05 2:59 
Vikram A Punathambekar wrote:
How?

An interesting point.[^]

I once attended a Java user group meeting where James Gosling (Java's inventor) was the featured speaker. During the memorable Q&A session, someone asked him: "If you could do Java over again, what would you change?" "I'd leave out classes," he replied. After the laughter died down, he explained that the real problem wasn't classes per se, but rather implementation inheritance (the extends relationship). Interface inheritance (the implements relationship) is preferable. You should avoid implementation inheritance whenever possible.



My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
GeneralRe: Interfaces are not substitutes for MI... Pin
Vikram A Punathambekar11-Apr-05 6:03
Vikram A Punathambekar11-Apr-05 6:03 
GeneralI voted good, but.... Pin
Christian Graus10-Apr-05 12:28
protectorChristian Graus10-Apr-05 12:28 
GeneralRe: I voted good, but.... Pin
Toby Opferman10-Apr-05 16:17
Toby Opferman10-Apr-05 16:17 
GeneralRe: I voted good, but.... Pin
Bob Stanneveld10-Apr-05 21:20
Bob Stanneveld10-Apr-05 21:20 
GeneralRe: I voted good, but.... Pin
Toby Opferman10-Apr-05 23:04
Toby Opferman10-Apr-05 23:04 
GeneralRe: I voted good, but.... Pin
Aza11-Apr-05 2:22
Aza11-Apr-05 2:22 
GeneralRe: I voted good, but.... Pin
Giancarlo Aguilera11-Apr-05 4:51
Giancarlo Aguilera11-Apr-05 4:51 
GeneralRe: I voted good, but.... Pin
Toby Opferman11-Apr-05 7:07
Toby Opferman11-Apr-05 7:07 
GeneralRe: I voted good, but.... Pin
Aza11-Apr-05 21:12
Aza11-Apr-05 21:12 
GeneralRe: I voted good, but.... Pin
Bob Stanneveld11-Apr-05 4:15
Bob Stanneveld11-Apr-05 4:15 
GeneralRe: I voted good, but.... Pin
Toby Opferman11-Apr-05 9:03
Toby Opferman11-Apr-05 9:03 
GeneralRe: I voted good, but.... Pin
KevinHall11-Apr-05 5:12
KevinHall11-Apr-05 5:12 
GeneralRe: I voted good, but.... Pin
Toby Opferman11-Apr-05 7:05
Toby Opferman11-Apr-05 7:05 
GeneralRe: I voted good, but.... Pin
KevinHall11-Apr-05 7:25
KevinHall11-Apr-05 7:25 
GeneralRe: I voted good, but.... Pin
Toby Opferman11-Apr-05 7:55
Toby Opferman11-Apr-05 7:55 
GeneralRe: I voted good, but.... Pin
Alexandru Savescu11-Apr-05 3:18
Alexandru Savescu11-Apr-05 3:18 
GeneralRe: I voted good, but.... Pin
Anonymous15-Apr-05 2:47
Anonymous15-Apr-05 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.