A) class King extends Soldier { }
B) class King implements Soldier { }
C) class King { private BestFriend Soldier; }
D) class King { private Soldier bestFriend; }
View Answer
Option – D.
Similar Questions
Shahrukh starts from Barabanki to Fatehpur , 1 hour after Ajay starts. Shahrukh meets Kajol 1.5 hours after Shahrukh starts. If the speed of Shahrukh is at least 20km/h faster than the speed of Kajol. What is the minimum speed of Shahrukh to overtake Ajay, before he meets Kajol?
The SQL statements that take care of security and authorization are
How many alphabets need to be there in a language if one were to make 1 million distinct 3 digit initials using the alphabets of the language?
Which international organization has declared 2017 as the “International Year of Sustainable Tourism for Development”?
Who was Sikkim’s last sovereign king?
In the following question, out of the four alternatives, select the alternative which is the best substitute of the phrase. based on random choice or personal whim
Who played an important rule in bringing all the States in the Independent India into the country’s unity
12% of 70,000 is
The value of money varies
Which of the following states High Court has recently restored the power of the RBI to decide the period after which the bad loan can be called as a non-performing asset(NPA)?