Skip to main content
spelling cleanup
Source Link
gnat
  • 20.5k
  • 29
  • 117
  • 310

Should iI label class diagram variables as private or public?

In my program  , I have several class variablevariables whose access specifier is known as private package.

The default accessor specifier in Java is known as private package where it is accessible within the package which the class belongs to  .

For the UML class diagram , should iI label these variables as public or private ,? I cantcan't decide because of this concept of private package.

Should i label class diagram variables as private or public?

In my program  , I have several class variable whose access specifier is known as private package.

The default accessor specifier in Java is known as private package where it is accessible within the package which the class belongs to  .

For the UML class diagram , should i label these variables as public or private , I cant decide because of this concept of private package

Should I label class diagram variables as private or public?

In my program, I have several class variables whose access specifier is known as private package.

The default accessor specifier in Java is known as private package where it is accessible within the package which the class belongs to.

For the UML class diagram , should I label these variables as public or private? I can't decide because of this concept of private package.

Source Link
Computernerd
  • 409
  • 2
  • 6
  • 11

Should i label class diagram variables as private or public?

In my program , I have several class variable whose access specifier is known as private package.

The default accessor specifier in Java is known as private package where it is accessible within the package which the class belongs to .

For the UML class diagram , should i label these variables as public or private , I cant decide because of this concept of private package