Slicing
- Imagine we have a hierarchy of
shapes with the following members
- get_name():
the name assigned to the shape
- get_area():
the area occupied by the shape
- We also provide swap(&, &) for exchanging two shapes of the same
type
- Let us implement bubble sort
- Th. Gschwind. Advanced Software Engineering with C++ Templates.
356
shape
inherits