Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

We could rewrite the drawLogo method so that it has a single parameter: the drawing area.The rewritten method could use input dialogs to obtain...

We could rewrite the drawLogo method so that it has a single parameter: the drawing area.The rewritten method could use input dialogs to obtain the drawing position from the user.What is the drawback of this approach considering a program in java programming language?

Answers


Davis
This method is now more flexible.The input dialogs would appear every time we called the method.In the Original version of the method, the caller can obtain values for the position in a variety of ways before passing them as parameters.
Githiari answered the question on January 26, 2018 at 12:36

Answer Attachments

Exams With Marking Schemes

Related Questions