Topic: Classes and structures
Author: rodrig@xi.cs.fsu.edu (David Rodriguez)
Date: 20 Mar 1994 22:33:06 GMT Raw View
Can someone please answer a few questions for me?
Say I have a class called SingleList which implements a singly linked
list. I have a derived class called DoubleList which implements a doubly
linked list. I have a structure for the SingleList. Can I derive a
structure for the DoubleList which contains the structure for the
SingleList?
My basic problem is this: I have a struct for the singly linked list. I
would like to use this same struct for the doubly linked list plus a
previous pointer. How would one implement this?
Thank you in advance!!
David Rodriguez
rodrig@nu.cs.fsu.edu