2
I want to be able to instantiate an employee class (so this can’t be abstract) and have an abstract salary attribute that will be static for each type of employee.
I can do (in the working class):
private abstract int salario;
and in their subclasses:
private static int salario = x,
x being the value I want it to be for each subclass?
You are in the stack. Translate your question.
– user28595
You can’t, but if you explain why you want to do this, it might be possible to find an alternative.
– ramaral
You know that if you instantiate
Gerente
and that ifGerente
inherit fromFuncionario
, then you will be instantiating aFuncionario
, check?– Jefferson Quesado