java.lang.Error: Unresolved compilation problem: The field Car.horsepower is not visible

Coderanch | Erich Tiegelholz | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Visiblity: Default vs. protected access

    Coderanch | 5 years ago | Erich Tiegelholz
    java.lang.Error: Unresolved compilation problem: The field Car.horsepower is not visible

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: The field Car.horsepower is not visible

      at test.AccessTest.main()
    2. test
      AccessTest.main
      1. test.AccessTest.main(Car.java:17)
      1 frame