The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Here it goes....

Posted by Mukul on October 25, 2001 at 3:04 AM

> hey donna below the way three classes should be.don't get sad for listening to chineese ass like chin loong.i think he has to be more helpfull to people than been a big pervert.hope i see your snap soon.
> 1)barometer class
> public class Barometer
> {
> private double air_pressure = 0.00;
>
> public Barometer(double ap)
> {
> air_pressure = ap;
> }
> }

> 2)thermometer class
> public class Thermometer
> {
> private int temperature = 0;
>
> public Thermometer(int temp)
> {
> temperature = temp;
> }
> }
>
> 3)weather censer

> public class WeatherSensor
> {
> private Barometer bm = null;
> private Thermometer tm = null;
>
> public WeatherSensor (Thermometer thm, Barometer bam)
> {
> bm = bam;
> tm = thm;
> }
> }

> ask any other java you like to know.exeample codings specially.
> see ya
> Ja(va)rule


Criticising some one (in this case Chin) for advising Donna to put in some efforts towards the completion of HER assignment is not good.

What if the photo she sends is of a 60 year old lady... :)



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us