Modeling slides
P | N
- Introduction to CS2390
- Course Title: Modeling and Design
- First time in Room 102 (Classroom 2000)! Opportunities:
- -Demos on the LiveBoard
- -Course Recordings available on-line
- -Use of Smalltalk on machines around the Room
- -(More lecture slides directly on-line!)
- Language is 4/5 on Smalltalk, 1/5 on C++/Java/Other
- Course Issues
- One Design Assignment, Three Programming Assignments
- Labs on Wednesdays: Not the first week, not the last week
- LotsaTechnology
- Moving to Squeak
- Introduction to Modeling
- A Different Perspective on Programming:
- -Why did Humans Invent Math?
- What does the language matter?
- What do you have to know in order to model?
- A Different Perspective on How We Program:
- Sample:
- -Simulating Take-Off
- -Cheating
- -Not-Cheating
- Object-Oriented Modeling
- -Nouns, not Verbs
- -Cells or Tiny Computers
- -Networks and Connections
- Issues in Object Modeling
- -There is no World, there is no Ether
- -Objects can contain objects
- -Creating all those objects is a pain
- Ways to Model Objects
- X IsA Y: Generalization-Specialization Relationship
- X HasA Y: Part-Whole Relationship
- -Person HasA Nose
- -Class HasA Students
- X TalksTo Y
- The Language of O-O
- -Class: A template for objects
- -Instance: An object made from a class
- -Method or Service: A function or procedure known to an object
- -Typically, stored in the class for all instances to share
- -"Method" is a Smalltalk and Java term.
- -Instance variables: Data associated with a specific object
- -Each object has its own copy of instance variables.
- -Superclass: What a Class IsA
- Using Objects to Make Programming Easier or Faster: Inheritance
- Inheritance: Creating a hierarchy of objects
- Inheritance ONLY passes along IsA links!
- -ONLY! ONLY! ONLY!
- -A Teacher (say, Fred) gets all the characteristics of a Person (e.g., a Nose!)
- -But Noses don't get anything from a Person!
- There is inheritance between Classes not Instances
- -Fred the Teacher is not the subclass of anything.
- -Teacher is not the SuperClass of Fred
- Stages of the Process
- Object-Oriented Analysis: Figuring out the PROBLEM
- -Focus on the model, on the real world domain
- Object-Oriented Design: Figuring out the SOLUTION or MODEL
- -Try to be langauge independent, start to enter language dependence
- Object-Oriented Programming: Making it work
- Smalltalk: It's what we use. It keeps you from cheating.
- C++: We'll talk about it
- Java: Web. Platform independence.
- Python, Prograph, etc.
- Parts of the Product
- PDC: Problem Domain Component
- HIC: Human Interface Component
- Starting the Tour of Smalltalk
Previous | Next
Last modified at 7/17/97; 2:59:03 PM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | Papers | CS 2390 Spring '97 Home Page | STABLE | MMC-CaMILE
Slide Master