Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## astro.ex10.model
Class Planet

    java.lang.Object
      astro.ex10.model.CelestialBody
          astro.ex10.model.Planet

    public class Planet

extends CelestialBody

Field Summary
`private java.util.Set<Moon>` | `moons`

Constructor Summary
`Planet()`

Method Summary
`Planet` | `addMoon(Moon moon)`
`java.util.Set<Moon>` | `getMoons()`
`void` | `setMoons(java.util.Set<Moon> moons)`

Methods inherited from class astro.ex10.model.CelestialBody
`getDiscovery, getId, getMass, getName, setDiscovery, setId, setMass, setName`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### moons

    private java.util.Set<Moon> moons

Constructor Detail

### Planet

    public Planet()

Method Detail

### getMoons

    public java.util.Set<Moon> getMoons()

### setMoons

    public void setMoons(java.util.Set<Moon> moons)

### addMoon

    public Planet addMoon(Moon moon)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD