From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: f43e6,b87849933931bc93 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public From: richard@highrise.nl Subject: Re: What is wrong with OO ? Date: 1997/02/10 Message-ID: #1/1 X-Deja-AN: 217771834 sender: news@tip.nl (The News User) x-nntp-posting-host: 143.177.122.2 references: <32D11FD3.41C6@wi.leidenuniv.nl> <01bbd23a$5b667cc0$LocalHost@christophe-leph> <01bc0269$3fd55b20$ca61e426@DCorbit.solutionsiq.com> organization: Highrise Internetworking reply-to: dion@multitask.com.au (Dion Gillard) newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng Date: 1997-02-10T00:00:00+00:00 List-Id: In <01bc0269$3fd55b20$ca61e426@DCorbit.solutionsiq.com>, "Dann Corbit" writes: >I remember hearing similar arguments about PL/1 many years ago. The line >of reasoning went something like this, "It is such a complex language, that >the average programmer can never become proficient in it." This is, of >course, pure bologna. With an advanced language you can be proficient >right away. You don't **have** to use the advanced features. Start with >the simple things and work forward. Classes, for instance, are simple. >There are some advanced features of classes like whether a member should be >virtual or pure virtual to create an abstract class. But you don't need to >know that to learn the language and actively use it as a productive tool. I doubt that a lot of people know everything about C++, even when they have been using it for years. Most programmers don't use a lot of features of a language simply because they don't *need* them. What is interesting for one leaves someone else totally cold. >And as to why virtual/non-virtual (IMO): >Something that is virtual can be replaced and/or shared. If you need these >capabilities, then make it virtual. A pure virtual member will cause a >class to be abstract. This is valuable if you have a class that is really >not able to exist as a useful entity until it has been specialized by a >class that inherits from it (in other words, you don't want to create a >stand-alone instance of the abstract class). > Virtual functions are also a kind of documentation. When declaring a function virtual, the programmer is more or less saying "go ahead, override this function if you like." Greetz, RS