March 28, 201510 yr So would protected be a better options? Or even re adjusting my packages so i dont have to use these modifiers at all? Thanks for pointing it out though, I do feel very clumsy using it a lot, my entire GUI class is utter shit in my opinion You should rethink your design to make the classes less dependent on each other. Using protected/no modifier at all isn't the solution, they should be private. If you need to access them like that, use getters and setters.
March 31, 201510 yr Author You should rethink your design to make the classes less dependent on each other. Using protected/no modifier at all isn't the solution, they should be private. If you need to access them like that, use getters and setters. Thanks for the feedback, much appreciated mate
Create an account or sign in to comment