RU beehive logo ITEC dept promo banner
ITEC 120
2008spring
ibarland,
jdymacek

homeinfoexamslectureslabshws
RecipeLawsliessyntaxjava.lang docsjava.util docs

lect07a
solidifying our knowledge
lect07a

We will review make sure we understand:

Practice: A VideoGame has a title, a web page, and a suggested price.
Write a class with appropriate fields and constructor. Write a getter for the price.

brainstorming Dates

In lab, we have followed The Design Recipe for modeling Dates.

Brainstorm: what further info a Date might have?

model vs. view

Let's look at a different language than Java -- fire up a spreadsheet (like Excel). Spreadsheet programming is also programming (although it's not object-oriented).

Objects containing objects

What if we decided that a VideoGame also contains a release-date?


1In fact, are we really certain that Excel represents dates as an int?      

2Well, spreadsheet programming -- that is, what we type in as a user to computer our answers -- isn't object-oriented, and hence date(int,int,int) isn't actually a “contructor”, but it is the function which creates the internalized representation -- close enough.      

homeinfoexamslectureslabshws
RecipeLawsliessyntaxjava.lang docsjava.util docs


©2008, Ian Barland, Radford University
Last modified 2008.Jan.24 (Thu)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme