Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #15458

Re: super superclass

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 <someone@somewhere.net>
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> (permalink)
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

Show key headers only | View raw


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


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