Introduction to OOP
Chapter 21: Software Frameworks :
next
previous
audio
real
text
A Simple Example, a GUI System
A simple example might be a framework for user interfaces:
Class
Window
: methods
foundation:
setTitle, setWindowSize, moveWindowTo, addMenu, repaint
specialization:
mouseDown, keyPress, paint
class
Childwindow
: methods
paint, mouseDown, keyPress
The foundation method are applicable to any type of window. The deferred specialization methods are appropriate only to one type of application.
Intro OOP,
Chapter 21
, Slide 04