Question: Given the following class structure, what is the proper way to create an instance of Spinner inside the bake() method? (Choose three.) A. var a

Given the following class structure, what is the proper way to create an instance of Spinner inside the bake() method? (Choose three.) 

public class Kitchen { class Mixer { class Spinner {} } }

A. var a = new Kitchen().new Mixer().new Spinner();

B. Mixer.Spinner b = Mixer.new Spinner();

C. var c = new Spinner();

D. var d = new Mixer().new Spinner();

E. Kitchen.Mixer.Spinner e = new Kitchen().new Mixer().new Spinner();

F. Spinner f = new Kitchen().new Mixer().new Spinner();

public class Kitchen { class Mixer { class Spinner {} } } public void bake () { // INSERT CODE HERE }

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!