Drag and drop from the options below to print "Hello". | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

Drag and drop from the options below to print "Hello".

class A { public void print() { System.out.println("A"); } } class B { public static void main(String[ ] args) { ___object = ___ A() { @Override public void___ () { System.out.println( ); } }; object.print(); } } String "Hello". print B A extends new

24th May 2020, 7:55 PM
GUANLIANG Shi
GUANLIANG Shi - avatar
1 Réponse
0
What's your doubt? Whats your answer?
24th May 2020, 7:58 PM
Jayakrishna 🇮🇳