Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #15458
| From | Christopher Pisz <someone@somewhere.net> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: super superclass |
| Date | 2012-04-18 16:04 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <4F8F2C5E.6020904@somewhere.net> (permalink) |
| References | <23059116.431.1334670603001.JavaMail.geo-discussion-forums@ynku11> |
On 4/17/2012 8:50 AM, bob@coolfone.comze.com wrote: > In C++, is there a class like the Java Object class that all classes derive from? I've seen a good number of people coming from java that decided to roll their own in C++, and more times then not, it ends up causing problems. Instead, decide what you need a particular class to do, or group of classes. You are in the danger zone when you start thinking along the lines of "All classes should do X." For example, do all classes really need a ToString() method? Surely, there are going to be some classes where a string representation either makes no sense or has little value. However, it might make sense to have some common method like ToXml() for all configuration classes....
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
super superclass bob@coolfone.comze.com - 2012-04-17 06:50 -0700
Re: super superclass Marc <marc.glisse@gmail.com> - 2012-04-17 14:29 +0000
Re: super superclass Christopher Pisz <someone@somewhere.net> - 2012-04-18 16:04 -0500
Re: super superclass Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-04-18 22:07 +0000
Re: super superclass Nobody <nobody@nowhere.com> - 2012-04-19 18:40 +0100
Re: super superclass Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-04-20 07:56 +0000
Re: super superclass Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2012-04-20 00:29 -0400
csiph-web