Skip to content

beer-song: make classes and methods package private in reference solution #984

Closed

Description

@FridaTveit

All the public class and method access modifiers in the beer-song reference solution can be changed to package private (which is the default therefore the access modifier can be left out). For example, public class BeerSong { should be changed to class BeerSong {.

We do this since it's best practice to restrict access to a class and its methods as much as possible (see our POLICIES doc for more information).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions