#### CSC274b

Spring 1998

Ileana Streinu

#
Lecture 8

Implementation Issues

#### Monday, Feb.16, 1998

- Crash Introduction to Java:
lecture
1 from CSC112 last Fall.
- Informal labwork for those who are not familiar with Java:
Lab
1 from CSC 112 last Fall. Do all your work in your 274b-xx
class account, and change the permissions so that I see your work
when done (this is the "submission" method). Send me email
whenever you encounter problems (but first check the
112
Fall 1997 home page for frequently asked questions and for
learning how to use that resource).
- Elements of Object-Oriented Programming.
- Objects and classes.
- Attributes and behavior.
- Creating a class. Working with objects.
**new** to create new objects.
**Dot notation**: getting values. Example:
the Rectangle class.

- Textbook, pp. 17-27, 1.3 Implementation Issues and 1.4 Area
of Polygon.
- Warning: we will do the implementation in Java, and I will
discuss what is different from the textbook's approach in C.
- Java interface for geometric objects: points, lines,
segments, polygons. How to use it.
- Representation of a point.
- Representation of a segment.
- Representation of a Polygon.
- Computations.
- Area of triangle. Determinant form.
- Area of Convex and non-convex polygon. (optional)

Last modified February 16, 1998.