Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with this program which i already summit for help. I need help with creating its base class steps and all other steps
I need help with this program which i already summit for help. I need help with creating its base class steps and all other steps to run program. please help.
Assignment \#6-Clain of Inheritance Above, you will see an example of a Chain of Inheritance (yes, thefe is a lot in the UMI, charts that is missing like private, public, methods, parameters and return types). For this assignment, you will need to create your own Chain of Inheritance about something that interest you. You will start with a sub-class like Point and slowly add a new super-class. 1. You must submit a detailed UML chart three davs before the deadline of the program: 2. Your program must have at least three classes like above and a demo program that tests all the methods in each of the class including the toStrings: 3. Your program must be well documented both internally and externally- make it user friendly please by using JayaFX and how about a little pizzazz UML chart 10 points Frogram 20 points 1. Base class: Animal - String name - int age - String species - getters and setters for all fields - toString method 1. First sub-class: Mammal - boolean hasFur - int numberOfLegs - getters and setters for all fields - toString method 1. Second sub-class: Reptile - boolean isColdBlooded - boolean laysEggs - getters and setters for all fields - toString method 1. Third sub-class: Snake - boolean isPoisonous - boolean isVenomous - getters and setters for all fields - toString method import javaf x. application. Application; import javafx. scene. Scene; import javafx. scene. control. Label; import javafx. scene. Layout. VBox; import javafx. stage. Stage; public class AnimalDemo extends Application \{ enverride. public void stant(Stage stage) \{ Animal animal = new Animal ("Chartie", 3, "Dog"); Marmal mamal = new Mamal "Lola", 5, "Cat", true, 4); Reptitia reptile = new Reptile("Tina", 2. "Turtle", false, true); Snake snake = new Snake("Samantha", 1, "Python", true, false, true); Label animal Label = new Label (animal tostring ( ) : Label mammalLabel = new Label (mamal . toString . , Label reptilelabel = new Label creptile. tostring(D): Label snakeLabel = new Label snake tostring(i) f VBox vbox = new VBox animallabel, mamallabel, reptileLabel, snakelabel); Scene scene = new Scene(vbox, 400,300: stage. setscene(scene) stage show sit pubtic static void main (5ting[] args: taunchs Need help with creatinf set of all its class ans demo class including toString method please. include all class files to run this program. thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started