Must be in Object oriented Java.
Thanks :)
I Lab Assignment suring Finally Cathem 'NIN hances the words Prerequisite toples: Creating a template of a con The can definition the client code the sam e Symbolic constants The default constructor The String class and String manipulation methods These check the bly of the top of the celestial wing the w a r . The worden w of sale ,make me to the to 10 Th. the weather they eded the class Class 100 kelvin wou l d temp o tebe to the minimal the Duedate: As described by profesor Saw Deliverables in the assignment, a celestial objects defined to be entities in the space Example of celestial objects are comets, meteor, planets and stars. Every celestial object has a nam, diameter and a temperature. The minimum diameter for a celestial object is 1 mile, and cannot have a temperature below 300 Kelvin You may assume that the temperature is a whole value. The diameter, on the other hand, can be a real number. The name of the celestial object, cannot be an empty string Create a daus named CelestialObject, objects of which will represent celestial objects emulated in the memory of the computer. The class contains the necessary accessor and mutator methods, to prevent the celestial object from attaining invalid attribute values. Any attempt from the client to set the name of the object to an empty string, will result in the name being set to the string "N/A". Any attempt to set the diameter and temperature to invalid values will result in them being set to the minimales The class will also contain a default constructor, which sets the name to the string 'N/A", and the other attributes to their minimal values To test the class, create the client code, which takes the actions listed below, in the order specified creates a celestial object using the default constructor. It then prints the attributes of the this celestial object onto the screen. creates a second celestial object using the default constructor, it then prints the attributes of this celestial object onto the screen. Then (using the object's accessor and mutator methodi) chanye the name, diameter and temperature to "CY-56", 4000 miles and 700 Kelvin respectively. The object's attributes are then printed onto the screen. (This test case checks the ability of the class to protect the name of the object) Create a third celestial object, using the default constructor. The client would then print the attributes of