Question: Given the following class structures, which lines can be inserted into the blank independently that would allow the class to compile? (Choose two.) A. dino.Pterodactyl()
Given the following class structures, which lines can be inserted into the blank independently that would allow the class to compile? (Choose two.)

A. dino.Pterodactyl()
B. Dinosaur.new Pterodactyl()
C. dino.new Pterodactyl()
D. new Dino().new Pterodactyl()
E. new Dinosaur().Pterodactyl()
F. new Dinosaur.Pterodactyl()
public class Dinosaur { class Pterodactyl extends Dinosaur {} public void roar () { var dino = new Dinosaur(); } }
Step by Step Solution
3.55 Rating (152 Votes )
There are 3 Steps involved in it
In the code snippet youve provided Pterodactyl is an inner class of Dinosaur Given this arrangement ... View full answer
Get step-by-step solutions from verified subject matter experts
