Get premium membership and access questions with answers, video lessons as well as revision papers.

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


Next: Whereabouts will the logos be drawn in the following java codes Int a = 10; Int b = 20; drawLogo (paper , a, b); drawLogo(paper, b + a, b...
Previous: Explain the problem in the following java calls : drawLogo (paper , 50, ‘’10’’); drawLogo (50, 10, paper); drawLogo (paper, 10);

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions