[Project 2_1] Create a simple applet that draws an red-oval, a green--square and a blue-circle and writes the name of each shape just above it. [You need to submit three files: Proj2_1.java, Proj2_1.class, Proj2_1.html]. The online Java documentation at http://java.sun.com/j2se/1.3/docs/api/
(and more specifically http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics.html
) may prove very useful to you.
[Project 2_2] Answer the following questions and give
short code examples to illustrate these concepts. [You need to submit
1 text file: Proj2_2.txt]
What are constructors?
How do we initialize objects?
What the generic code for a class?
What are class & instance variables and methods?
What is inheritance (e.g.,'s)?
Assignment 2, due date: Wed., July 03, 2002
Last modified on
by .
\Ivo D. Dinov, Ph.D., Departments of Statistics, Neurology, Program in Computing, UCLA School of Medicine/