🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.vc.language
Article #97

requesting c++ class exercises

#97
From: kriptor
Date: Mon, 25 Jan 1999 00:00
26 lines
2339 bytes
I have recently learned classes and I understand how they work but I need to
practice all the particulars.  I was wondering if anyone could give me some
exercises concerning the following subjects.

questions on:

-normal classes (no inheritance) -creating copy constructors and assignment
operators for classes that have data members allocated in the free store
-derived classes, base classes -access control under inheritance; 
public,protected and private in derived -constructors, destructors and how
they behave under inheritance -inheritance and overloaded operators -indirect
base classes -virtual functions -multiple inheritance -questions on deciding
what type of objects to make to solve a particular problem,  ie. How to setup
your classes and their relationships to create an ideal interface for using
your objects to solve specific situations.

I can read about all theses topics and understand the basics of it, when to
use it and why, but the minute I start coding, I'll forgot stupid things like
what access my derived class has to its base class and blah blah blah so I
need to hammer it into my head by doing exercise after exercise after
exercise until it becomes second nature.  =P

can anyone help me?

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <78gdln$i4s$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fdcad,865360b03679b5f9,start
X-Google-Attributes: gidfdcad,public
X-Google-Thread: 10c73c,865360b03679b5f9,start
X-Google-Attributes: gid10c73c,public
X-Google-Thread: f7a51,865360b03679b5f9,start
X-Google-Attributes: gidf7a51,public
X-Google-Thread: 104d65,865360b03679b5f9,start
X-Google-Attributes: gid104d65,public
From: kriptor@my-dejanews.com
Subject: requesting c++ class exercises
Date: 1999/01/25
Message-ID: <78gdln$i4s$1@nnrp1.dejanews.com>
X-Deja-AN: 436487590
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
X-Http-Proxy: 1.1 x16.dejanews.com:80 (Squid/1.1.22) for client 204.187.88.155
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Mon Jan 25 00:25:35 1999 GMT
Reply-To: kriptor@vianet.on.ca
Newsgroups: microsoft.public.vc.language,de.comp.lang.c++,fr.comp.lang.c++,microsoft.public.vc.mfc