Monday, 27 March 2017

Core Java Assignment 18

vCore Java Assignment 18


A10.1-R4: INTRODUCTION TO OBJECT ORIENTED PROGRAMMING THROUGH JAVA.

Assignment 18


Write a program using inheritance that should be able to draw a circle, Ellipse, square,
rectangle, parallelogram and a rhombus when relevant dimensions are read in e.g. a circle 
can be drawn when the centre and the radius is read in, and ellipse can be drawn when the
major and minor axis lengths along with the centre is given, a rectangle can be drawn with
two sides given and so on.

                                                                     Next Assignment