How does the compiler do to implicitly all classes inherit from object
?
This is a behavior adopted in languages such as C #, Java and others.
public class Funcionario
{
}
public class Funcionario : Object
{
}
The above example is redundant. But how does the compiler know that all created classes must assume this pattern? Is it possible for the programmer to force the compiler to implement such behavior? Maybe even forcing the inheritance of other classes?