Use any language (Java/C#/ or any other OO language). Create a class named Shape with an abstract method named print. From this class inherit three classes - Square, Triangle and Circle. Square will have 4 points with coordinates (10,20) (30,40) (50,60) (70,80) Triangle will have 3 points with coordinates (10,20) (30,40) (50,60) Circle will have a point and a radius (25) with coordinates (50,60) Implement the print method of shape to print to the console the points/radius of the shape (the properties of the specific shape). Have an array of Shapes with three instances of each type of shape. Loop over the array and call print, to print each one of the shapes. Use a console input to input the data to each one of the shapes type.
Use any language (Java/C#/ or any other OO language). Create a class named Shape with an abstract method named print. From this class inherit three classes - Square, Triangle and Circle. Square will have 4 points with coordinates (10,20) (30,40) (50,60) (70,80) Triangle will have 3 points with coordinates (10,20) (30,40) (50,60) Circle will have a point and a radius (25) with coordinates (50,60) Implement the print method of shape to print to the console the points/radius of the shape (the properties of the specific shape). Have an array of Shapes with three instances of each type of shape. Loop over the array and call print, to print each one of the shapes. Use a console input to input the data to each one of the shapes type. Can you make a video for this particular program
Hi Andrew, Are you still making Java tutorials? I would like to ask you many questions about it, as I find your way of teaching very helpful to me. But I see you didn't add since 2018. Now we are 2021....How can I contact you? Nina
Hey Andrew! first of all thank you for a clear video that was easily to understand. I have a problem in my computer science class that is quite difficult and was wondering if you could offer some of your help. Please reply to this comment. Thank you!