Skip to content

Fruit Class

Ariel David edited this page Jan 19, 2020 · 2 revisions

Fruit Class

This class represent a fruit with 3 params:

  1. double value
  2. int type
  3. Point3D pos

Methods:

public fruit()

public fruit(int type, double value, Point3D pos)

public fruit(fruit f)

public double getValue()

public void setValue(double value)

public int getType()

public void setType(int type)

public Point3D getPos()

public void setPos(Point3D pos)

Clone this wiki locally