Posts by Mestre San • 111 points
1 post
-
1
votes1
answer932
viewsA: Syntaxerror: Private field '#attribute' must be declared in an enclosing class
The classic confusion between inheritance and private vs protected properties. The Functionario class has the field #bonificacao as private, this means that only the internal code of that same class…