Given the following class declaration, which options correctly declare a local variable containing an instance of the

Question:

Given the following class declaration, which options correctly declare a local variable containing an instance of the class? 

image text in transcribed

A. new Sunset() extends Sky {};

B. new Sky();

C. new Sky() {}

D. new Sky() { final static int blue = 1; };

E. The code does not compile regardless of what is placed in the blank.

F. None of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: