Programming Questions? Ask a Programmer for Answers ASAP
Yes, the flow chart, UML,MAIN,PET, etc . but I believe Raptor will create the JAVA source code, once the flow chart is complete. I'll insert the comments where applicable. I saw on an earlier post that this program had been done, already, thought it was readily available.
Design a class named Pet, which should have the following fields:
The Pet class should also have the following methods:
Once you have designed the class, design a program that creates an object of the class and prompts the user to enter the name, type, and age of his pet. This data should be stored in the object. Use the object’s accessor methods to retrieve the pet’s name, type, and age and display this data on the screen.
I noticed that there are two files for the Java source script. Is that because of the UML?
How would I design this program if I could not use the class diagram?
The UML Diagram is given in the Raptor file.Pet Class code is as per the UML File.