Jump to content

Wanting feedback on my script/code


Recommended Posts

Posted

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.

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...