what if we write: public class Animals {..... // in a public class and Animal dog = new Animal(); // in a main. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

what if we write: public class Animals {..... // in a public class and Animal dog = new Animal(); // in a main.

tell what if we write: public class Animals {..... // in a public class and Animal dog = new Animal(); // in a main.

15th Sep 2017, 6:07 AM
Prathamesh Dhuri
Prathamesh Dhuri - avatar
1 Respuesta
0
I don't believe you can define a class in a method like that.
15th Sep 2017, 6:12 PM
josh mizzi
josh mizzi - avatar