<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
<blockquote cite="mid:378184.73536.qm@web37008.mail.mud.yahoo.com"
 type="cite">
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
 valign="top">
        <div>After loading your Drink.java program into a new project
it refuses to run on my eclipse.&nbsp; I says that it doesnt contain a main
type.&nbsp; I do not remember you making any modifications in class to
drink.java before running it.&nbsp; Is there a problem with my eclipse or am
I just missing something.&nbsp; Thanks</div>
        <div>Thomas Evans</div>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
</blockquote>
This is EXACTLY what should happen.<br>
<br>
Drink.java is the SOURCE code that I wrote to make the Drink.class
file.&nbsp;&nbsp; This is the file that defines the Drink object.&nbsp; Like we saw in
lab today, you have to have another test program create and manipulate
the object.&nbsp; Also as we saw in lab today, the file that defines the
object (like BoxBug.java, CircleBug.java, and SpiralBug.java) does not
contain a "main" method -- and therefore will not run on its own.&nbsp;
Another program has to be present to actually utilize the code (In lab
today it was the BoxBugRunner.java file).&nbsp; <br>
<br>
When I demonstrated the Drink.class file in class on Monday, I had
another piece of code named "Machine.java"&nbsp; that I wrote to create and
manipulate the Drink.java file.<br>
<br>
>From a teaching perspective we are dealing with levels of abstraction.&nbsp;
Remember -- on Monday I started with just the Drink.class file --&nbsp; you
were not given the Drink.java code -- that's why we had to go look at
the API.&nbsp; At the end of class on Monday I showed you the source code
that I used to make the Drink class (Drink.java).&nbsp;&nbsp; This was the point
that we passed from Chapter 2 to Chapter 3.&nbsp;&nbsp; In class on Wednesday we
played exclusively with Drink.java, developed a new level of
abstraction,
and used Drink.java to come up with an Airplane model.&nbsp;&nbsp; We will finish
that process tomorrow in class.<br>
<br>
<pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds@theochem.mercer.edu">pounds@theochem.mercer.edu</a>)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
</pre>
</body>
</html>