[prog] C++ Inheritance
Sue Stones
suzo at bigpond.net.au
Sat May 24 12:15:54 EST 2003
On Sat, 24 May 2003 02:33, Laurel Fan wrote:
> On Fri, May 23, 2003 at 11:18:57PM +1000, Sue Stones wrote:
> > I am trying to write a class that is a extention of fstream called
> > fstream_ext. If I have the termanology right fstream is the base-class.
>
> [snip]
>
> > explicit Fstream_ext::Fstream_ext(const char *filename,
> > openmode mode=in|out)
> >
> > :fstream(filename, mode=in|out)
>
> Just a sanity check.. is your class called Fstream_ext or fstream_ext?
Good point, the question that I am attempting to answer used fstream_ext but
elswhere in the book it said "your classes should start with a capital
letter". This is so emphatic that I didn't know it it was a language
requirement or a style convention.
Any comments here would be very usefull.
sue
More information about the Programming
mailing list