Introduction, OOP Exercise


Discuss whether the following are a phenomenon (object) or a concept (class). If it is a phenomenon then find the concept that covers the phenomenon.


Draw a generalization and specialization hierarchy for the different kinds of persons on a university, e.g., professors, teaching assistants, students, secretaries, and lab engineers. Describe the data and methods on the various concepts found.


Find two or more examples on an aggregated concepts.


Setup our computer environment such that you can run the Java SDK version 1.4.2

If the Java Standard Edition SDK version 1.4 is not installed on your local PC you can download it from Sun's home page at the following URL The Java Standard Edition is available at the Solaris platform at /pack/jdk-1.4.2.

Setup your PATH and CLASSPATH environment variables to point to the version 1.4 of the Java SDK. To find out which version of the Java environment you are running type java -version in a command window.

It is recommended to use and IDE to develop your Java programs.

When you have done this try to compile and execute a Hello World Java program on your machine. You can find a HelloWorld Java example code here

Extra Assignments

E1: List examples of software products that you would not implement using Java. Explain why Java is not well-suited for the products you have listed. State the programming language that you would use instead of Java and explain why.

E2: Discuss the advantages and disadvantages of single inheritance and multiple inheritance. I Java only single inheritance is possible, i.e., a class can only have one superclass. In C++ multiple inheritance is possible, i.e., a class can have multiple superclasses. 

Best regards,
Kristian Torp