home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v1.zip
/
IBMCPP
/
TUTORIAL
/
ICLCC
/
TUTOR6
/
INSTRUCT.TXT
< prev
next >
Wrap
Text File
|
1993-04-23
|
610b
|
13 lines
Tutorial 6: Writing polymorphic applications
1) Write a printCollection function, that prints list as well as sets.
2) Contruct a tabular list and copy all elements from the linked list to the
tabular one.
3) What do you have to add to person.h for the tabular list to work?
What do you have to add to person.h for the set to work?
4) Print out the contents of all collections.
5) Add "your name" to the reference class of the tabular sequence
6) Add K. Liegert to the tabular sequence
7) What is the advantage of providing classes for polymorphic
use and for non-polymorphic use?