OOP_2022/company/vesminetelesa/Galaxia.java

16 lines
415 B
Java
Raw Normal View History

2022-11-07 21:44:01 +00:00
package company.vesminetelesa;
public class Galaxia extends Slnecna_sustava{
private String name;
private Slnecna_sustava[] planetarne_sustavy = new Slnecna_sustava[1000];
private int pocet_sustav;
public void addSustava(Slnecna_sustava tato_sustava){
planetarne_sustavy[pocet_sustav] = new Slnecna_sustava();
}
public Galaxia() {
pocet_sustav = 0;
}
}