60 lines
928 B
Plaintext
60 lines
928 B
Plaintext
|
Application
|
|||
|
Programming
|
|||
|
Hend Alkittawi
|
|||
|
|
|||
|
Design Workshop
|
|||
|
How to approach an app design!
|
|||
|
|
|||
|
INTRODUCTION
|
|||
|
Think about the
|
|||
|
classes you need to
|
|||
|
create for a Payroll
|
|||
|
System application!
|
|||
|
*Reference Document
|
|||
|
|
|||
|
IMPORTANT
|
|||
|
|
|||
|
At the design stage in an
|
|||
|
object oriented system you
|
|||
|
will often find that certain
|
|||
|
classes are closely related.
|
|||
|
You should factor out common
|
|||
|
instance variables and
|
|||
|
methods and place them in a
|
|||
|
superclass, then use
|
|||
|
inheritance to develop
|
|||
|
subclasses, specializing them
|
|||
|
with capabilities beyond
|
|||
|
those inherited from the
|
|||
|
superclass.
|
|||
|
|
|||
|
DEMO
|
|||
|
-
|
|||
|
|
|||
|
UML diagram for the Payroll System in Chapter 10
|
|||
|
|
|||
|
Eclipse Hint!
|
|||
|
- To automatically generate getters
|
|||
|
and setters, right-click in the
|
|||
|
code editor > Source > Generate
|
|||
|
getters and setters.
|
|||
|
|
|||
|
- This functionality is to save
|
|||
|
|
|||
|
expert developers some time. Use
|
|||
|
it when you are at that level!
|
|||
|
|
|||
|
DO YOU HAVE ANY
|
|||
|
QUESTIONS?
|
|||
|
|
|||
|
THANK
|
|||
|
YOU!
|
|||
|
|
|||
|
@
|
|||
|
|
|||
|
hend.alkittawi@utsa.edu
|
|||
|
|
|||
|
By Appointment
|
|||
|
Online
|
|||
|
|
|||
|
|