Изменил(а) на 'MyFirstUniverse/src/com/company/cosmicbody/Planet.java'

This commit is contained in:
Oleksandr Hryshchenko 2022-11-07 22:24:09 +00:00
parent 54ff357686
commit 631c240ea3

View File

@ -94,10 +94,10 @@ public class Planet extends CosmicBody {
this.gravitation = gravitation;
}
// public Planet() {
// this.name = "Zem";
// this.weight = 5972200;
// this.diameter = 12756;
// }
public Planet() {
this.name = "Earth";
this.weight = 5972200;
this.diameter = 12756;
}
}