good afternoon
I am learning C # and Java and asking a question regarding inheritance. Is it possible to override private members in a superclass (base class). In my opinion, this would be wrong, since the access modifier prevented member access.
Sorry ... hope the question is not stupid.
Regards Arian
This is not a stupid question, but it gives a different concept to the hiding variable.
Java ( , , ). , , . Java , , . Static Binding - →
, , , , , , Static Binding. ( ) , . Static Binding, ( ), , . , Hidden , . , ( - ) .
private , .
private
, private, ( , ).
private , - private , .
, .
, , , .
, , PRIVATE FINAL, , , PUBLIC PROTECTED ( `t FINAL).
, , Java #. C++.
, :)
protected privated, childs
protected
privated