PPT Slide
Evolution of an Object: An Example
Pro:
Straightforward, no special techniques
Con:
No data type; no reusability, cannot create multiples of it.
Poor abstraction (none, except for data identifiers)
Pseudocode:
length isoftype Num
read(length)
width isoftype Num
read(width)
height isoftype Num
read(height)
volume isoftype Num
volume <- length * width * height
Previous slide
Next slide
Back to first slide
View graphic version