# Design of a solar system

We dispose of some classes both in C++ and JAVA that allow building applications working on notions of planets, stars and solar systems.

## Planet

This class represents the characteristics of a planet.

Type | Attribute name | Description
double | diameter | the average diameter of the planet

- function double getDistanceToSun(int iDay, int iMonth, int iYear)
  This function returns the distance to the sun at a given trivial earthly date. This function reclaims more attributes for the planet, but we'll see it later (I'm afraid not!).

## Earth

This class represents our planet, for instantiating our particular solar system for instance, and working on geopolitical data perhaps!

Type | Attribute name | Description
std::vector<std::string> | countryNames | the name of all countries are put into

## SolarSystem

This class represents the solar system, with its constituents, the sun excluded for the moment.

Type | Attribute name | Description
std::vector<Planet*> | planets | the planets that compose the solar system.