Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: why are classes sealed? Pin
Marc Clifton24-Dec-02 9:54
mvaMarc Clifton24-Dec-02 9:54 
GeneralRe: why are classes sealed? Pin
Nish Nishant24-Dec-02 11:23
sitebuilderNish Nishant24-Dec-02 11:23 
AnswerRe: why are classes sealed? Pin
leppie24-Dec-02 10:13
leppie24-Dec-02 10:13 
AnswerRe: why are classes sealed? Pin
Christian Graus24-Dec-02 11:05
protectorChristian Graus24-Dec-02 11:05 
GeneralRe: why are classes sealed? Pin
Nish Nishant24-Dec-02 11:23
sitebuilderNish Nishant24-Dec-02 11:23 
GeneralRe: why are classes sealed? Pin
Christian Graus24-Dec-02 12:42
protectorChristian Graus24-Dec-02 12:42 
GeneralRe: why are classes sealed? Pin
Marc Clifton24-Dec-02 14:09
mvaMarc Clifton24-Dec-02 14:09 
GeneralRe: why are classes sealed? Pin
Christian Graus24-Dec-02 14:18
protectorChristian Graus24-Dec-02 14:18 
Marc Clifton wrote:
because if I wanted it to act like an "is-a" class I'd have to write pass-throughs for all the base class's methods. For something like String, this is a lot!

The point is that this is by design, it's a feature for the benefit of class implimenters. I was pretty annoyed that I could not derive from std::string also, but once I knew the reasons I was fine with it. Incidentally, C++ would let me derive from std::string, all they could do was write it so that anyone who knew what they were doing would know it was a bad idea. C# is etter in that it allows you to generate a compile error if you derive from a class which the implimenter did not want you to.

Marc Clifton wrote:
Incidentally, this is also why I'm not very enamoured with interfaces.

I don't like interfaces/no multiple inheritance either.

Marc Clifton wrote:
Maybe I'm missing some core paradigm shift in OO programming.

There's no paradigm shift that I can see, it's simply the ability to enforce something that you could only strongly suggest in C++.


Christian

No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002


Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable.
- Jamie Nordmeyer - 15-Nov-2002
AnswerRe: why are classes sealed? Pin
James T. Johnson24-Dec-02 15:30
James T. Johnson24-Dec-02 15:30 
GeneralRe: why are classes sealed? Pin
JasonSmith25-Dec-02 16:04
JasonSmith25-Dec-02 16:04 
GeneralRe: why are classes sealed? Pin
James T. Johnson26-Dec-02 10:35
James T. Johnson26-Dec-02 10:35 
AnswerRe: why are classes sealed? Pin
James T. Johnson26-Dec-02 10:40
James T. Johnson26-Dec-02 10:40 
GeneralRe: why are classes sealed? Pin
Marc Clifton26-Dec-02 10:41
mvaMarc Clifton26-Dec-02 10:41 
QuestionHow to call GetIPictureFromPicture(Image image) method using C#. Pin
sns24-Dec-02 2:26
sns24-Dec-02 2:26 
AnswerRe: How to call GetIPictureFromPicture(Image image) method using C#. Pin
sns25-Dec-02 20:25
sns25-Dec-02 20:25 
Generalpoor but trying Pin
GaryR24-Dec-02 1:24
GaryR24-Dec-02 1:24 
GeneralRe: poor but trying Pin
TigerNinja_24-Dec-02 2:56
TigerNinja_24-Dec-02 2:56 
GeneralRe: poor but trying Pin
GaryR24-Dec-02 13:31
GaryR24-Dec-02 13:31 
GeneralPrinting Crystal reports Pin
sharon23-Dec-02 21:35
sharon23-Dec-02 21:35 
GeneralRe: Printing Crystal reports Pin
sharon25-Dec-02 21:42
sharon25-Dec-02 21:42 
General[URGENT PLEASE] Audio Library Pin
Jassim Rahma23-Dec-02 21:11
Jassim Rahma23-Dec-02 21:11 
GeneralRe: [URGENT PLEASE] Audio Library Pin
James T. Johnson23-Dec-02 21:28
James T. Johnson23-Dec-02 21:28 
GeneralRTL PrintDocument Pin
Jassim Rahma23-Dec-02 9:59
Jassim Rahma23-Dec-02 9:59 
GeneralRichEditBox Pin
Dave Kerr23-Dec-02 3:50
Dave Kerr23-Dec-02 3:50 
GeneralRe: RichEditBox Pin
leppie23-Dec-02 12:12
leppie23-Dec-02 12:12 

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.