Question: using java 1. Which of the following complete the constructor so that this code prints out 50 7. Which Of the following complete the constructor
1. Which of the following complete the constructor so that this code prints out 50
7. Which Of the following complete the constructor so that this code prints out 50? m: class Speedster { int nwnSpots; 04: public class Cheetah extends Speedster { 07 : 10 : int public Cheetah(int ( // INSERT HERE public static void args) { Speedster s new Cheetah(s); System. out. print( s. mnSpots) ; O numSpots numSpots; O numSpots = this.numSpots; O this.numSpots = numSpots: O numSpots = super.numSpots; O super. numSpots = numSpots: O The code does not compile. regardless of the code inserted into the constructor.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
