Repeat Exercise Graphics E8.23 by designing classes LetterH, LetterE, LetterL, and LetterO, each with a constructor

Question:

Repeat Exercise • Graphics E8.23 by designing classes LetterH, LetterE, LetterL, and LetterO, each with a constructor that takes a Point2D.Double parameter (the top-left corner) and a method draw(Graphics2D g2).Which solution is more object-oriented?

Data from Exercise Graphics  E8.23

Write methods:

image text in transcribed

that show the letters H, E, L, O in the graphics window, where the point p is the top-left corner of the letter. Then call the methods to draw the words “HELLO”
and “HOLE” on the graphics display. Draw lines and ellipses. Do not use the drawString method. Do not use System.out.

••

Step by Step Answer:

Related Book For  answer-question
Question Posted: