In Java, the class Object acts as the root for all the other classes that are created. Every new class inherits from Object, so can be Object considered the Metaclass of Java? I suppose there is just one Metaclass in Java, not like Smalltalk or Ruby.
Asked
Active
Viewed 45 times
0
-
1Object is a class in itself. You can create instances of `Object o = new Object();` – Peter Lawrey Feb 11 '16 at 00:15
-
1"Metaclass" doesn't mean what you think it does. – user2357112 Feb 11 '16 at 00:15
-
1`Object` is a class. A class is a meta-object. `Class` is a 'meta-class' in Java. – user207421 Feb 11 '16 at 00:28