Next: Some Research
Up: Preparatory Tasks and Exercises
Previous: Code Prediction
You have read the first chapters of the accompanying books and you have been
playing with classes and objects in BlueJ, so by now you should have some
vague idea what the difference is between the two.
- Identify the classes and the associated
objects in the following collection:
``Harry Potter and the Philosopher's Stone'', City, theFraction3/4, Bath
Student, Book, CM10134, BankAccount, you, Fraction, CM50176.
- Describe the features of each class and identify the actual valued for
the corresponding objects. For example the class Cat has a feature name.
The object myCat has a value ``Vampire'' for name.
- What should you be able to do with each class/object. For example,
ask a Cat's name.
- Find some other example of classes and objects.
Marina De Vos