The root class is the highest class in the inheritance hierarchy. For example, in C #, all classes inherit from Object.
The root class is different for each language, summarized in the following table. (Recently, the root classes in C #, Java and Kotlin have been messed up ...)
Language | Name | Details |
---|---|---|
C# | Object | Object Class (System) |
Java | Object | Object (Java Platform SE7) |
Kotlin | Any | Any - Kotlin Programming Language |
Python | object | Class definition |
etc... | etc... | etc... |
There are root classes in other languages too ... Please tell me who knows.
Recommended Posts