Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Christopher Pisz Newsgroups: comp.lang.c++ Subject: Re: super superclass Date: Wed, 18 Apr 2012 16:04:30 -0500 Organization: A noiseless patient Spider Lines: 19 Message-ID: <4F8F2C5E.6020904@somewhere.net> References: <23059116.431.1334670603001.JavaMail.geo-discussion-forums@ynku11> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="1m87PYR3F9zwQJWulpU5VA"; logging-data="19655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MXLP39sNodU184iPbOHcOQUz37WX7dlE=" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: <23059116.431.1334670603001.JavaMail.geo-discussion-forums@ynku11> Cancel-Lock: sha1:aVmbUO27bBdLTA4bEDa10AbROHU= Xref: csiph.com comp.lang.c++:15458 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....