oop22/MyFirstUniverse/src/com/company/cosmicbody/Сomet.java
Oleksandr Hryshchenko e5ec8b4a06 gggf
2022-11-07 23:00:14 +01:00

22 lines
517 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.company.cosmicbody;
public class Сomet extends CosmicBody {
private int object_counter;
private CosmicBody[] orbitalBody = new CosmicBody[500000000];
public Сomet() {
setObject_counter(0);
orbitalBody[object_counter] = new Сomet();
object_counter++;
}
public int getObject_counter() {
return object_counter;
}
public void setObject_counter(int object_counter) {
this.object_counter = object_counter;
}
}