Skip to main content
I think you meant members.
Source Link
Ethan Bierlein
  • 15.8k
  • 4
  • 59
  • 146

In Widget, the members x and y should be private. They should not be exposed to the interface in such a way. You can either add the private keyword above them, or just move the public keyword below them (classesmembers are private by default, so both are essentially the same).

In Widget, the members x and y should be private. They should not be exposed to the interface in such a way. You can either add the private keyword above them, or just move the public keyword below them (classes are private by default, so both are essentially the same).

In Widget, the members x and y should be private. They should not be exposed to the interface in such a way. You can either add the private keyword above them, or just move the public keyword below them (members are private by default, so both are essentially the same).

Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

In Widget, the members x and y should be private. They should not be exposed to the interface in such a way. You can either add the private keyword above them, or just move the public keyword below them (classes are private by default, so both are essentially the same).