CMSC 22

   Object
Oriented Programming
using

   Object
      models
 to represent and solve
real-world problems
Information Hiding
Interfaces          Classes

         Objects
                              Modularity

   Instances Polymorphism
 Inheritance        Encapsulation
CMSC 22

   Object
Oriented Programming
CMSC 22

   Object
Oriented Programming
 the
    RPG
CMSC 22
  =
RPG
student
   =
PLAYER
scores
  =
XP
grade
   =
LEVEL
start
  =
LEVEL
 zero
3.0
  =
LEVEL
seven
1.0
   =
LEVEL
fifteen
programming exercise
        =
 QUEST
exam
    =
DRAGON
 slaying
reporting
    =
GUILD
 raid
4 weeks
           =
SEASON
summer|fall|winter|spring
reading assignment
         =
CRAFTING
create-an-exercise
        =
 MAP
making
collaboration
              =
HELPING
each other figure out the answer
collaboration
           !=
 GIVING
your answer to someone else
copying code
     =
FAIL
welcome
    =
FEEDBACK
CMSC 22
  =
RPG
CMSC 22

   Object
Oriented Programming
 the
    RPG
CMSC 22

     Object
 Oriented Programming
http://cs22.posterous.com

CMSC22: Object Oriented Programming - The RPG