您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 7

Activity 7 – Classes and objects

This activity asks you to place yourself in the shoes of a system modeler, by thinking up examples of classes and objects that are instances of classes that are plausible for the example systems.

(1) Suggest 3 or 4 classes that might be needed for the personnel department of a university.

(2) Suggest 3 or 4 classes that might be needed for a supermarket system.

(3) Suggest 3 or 4 classes that might be needed for a bank system.

(4) Suggest 3 or 4 classes that might be needed for a hospital.

(5) Create 2 or 3 instances for each of your university classes.

(6) Create 2 or 3 examples of instances for each of your supermarket, bank and hospital classes.

Discussion of Activity 7 – Classes and objects

Back to Content

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg