Question: java Last Question (divided in to two subquestions) Assume that the following snippet of code is part of the main method of a Test class


Last Question (divided in to two subquestions) Assume that the following snippet of code is part of the main method of a Test class which belongs to a package called quizzes. String c = "purple"; items. Candy [] bestCandies items.Candy.getSourCandies (c, 10); Assuming that the code above follows naming conventions, compiles and run correctly: Question 10 (0.5 points) Saved a) In which class(es) could have the method get SourCandies () be defined? a) In the class Candy b) In the class CandyStore c) In any class which contains a field of type Candy d) In any class that belongs to the package items. b) Write the header of the method get SourCandies (). (you can choose whichever names you like for the input parameters)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
