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:

Donna here is the complete codings for u -send your snap to me

Posted by ja(va)rule on October 25, 2001 at 2:58 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



Replies:

Sponsored Links



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