Given the following:
1)public class Barbell{
2) public int getWeight(){
3) return weight ;
4) }
5)public void setWeight(int w){
6) weight =w;
7) }
8)public int weight;
9) }
which is true about the class described above?
1)class Barbell is tightly encapsulated.
2)Line 2 is in conflict with encapsulation.
3)Line 5 is in conflict with encapsulation.
4)Line 8 is in conflict with encapsulation.
Answers
Answered by
0
Explanation:
vbmkjkksksjssmsdkkdkdkdkdkdkdkdd
Answered by
0
Explanation:
Exception in thread “main” java.lang.NoClassDefFoundError :B2Could not find the main class : Barbell. Program will exit.
Similar questions