www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/13/23:39:07

Xref: news2.mv.net comp.os.msdos.djgpp:2672
From: elric AT wheel DOT ucdavis DOT edu (Jeffrey Taylor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: typedef struct inheritance -- not possible?
Date: 12 Apr 1996 16:34:01 GMT
Organization: Davis Community Network - Davis, California, USA
Lines: 12
Message-ID: <4km0lp$m38@mark.ucdavis.edu>
References: <828969663 DOT 273snx AT techm DOT pl DOT my> <316CE3F5 DOT B8 AT pop DOT atlanta DOT com>
NNTP-Posting-Host: wheel.dcn.davis.ca.us
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Shawn Lee (sdlee AT pop DOT atlanta DOT com) wrote:
: Kenneth Foo wrote:
: > What I'm trying to do is to derive a class called DERIVED from BASE.
: > Hopefully, this avoids those silly constructors during creation.

In C++, a struct is the same as a class, except the default access is 
public instead of private.  You are not avoiding constructors.

============================================
Without my guitar, I am a poet without arms.
                        - Michael Bloomfield
============================================

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019