HEY THERE!!
I will chose my sister though we have not blood relation but then she is my ideal . i love her so much and i respect her a lot , much more then a real sister . She is everything to me. She guides me in my study amd after meeting her i am completely changed.
I m an INDIAN and she is an Pakistani i met up with her in brainky amd now i don't wanna loss her ever.
Love you sis .
Answer:
Public int getHeight(){
return height;
}
public int getWidht(){
return widht;
}
public int setHeight(int change){
height = change;
}
public int setWidht(int change){
widht = change;
}
public int getPerimeter(){
int perimeter = 2 ( getWidht() + getHeight ());
return perimeter;
If the width is 10 and height 4, the perimeter should be 28.
Explanation:
An accessor in Java is a method that is used to get the value of an object variable. The program above has three accessor methods, getHeight, getWidht and getPerimeter.
Mutators are methods that is used to change of mutate the value of object variables. They are denoted or identified by the set prefix in their names. From the class code, the mutator are setHeight and setWidht.
Maybe fix the grammar first. Then give suggestions that are similar but not the same to what the boss wrote.
-hope this helped