package Absent;public class Chapter5 {public static void main(String[] args) {Ladder.bottom=100;Ladder ladderOne=new Ladder();Ladder ladderTwo=new Ladder();ladderOne.top=23;ladderTwo.top=34;System.out.println("ladderOne的上底:"+ladderOne.gettop());System.out.println("ladderOne的下底:"+ladderOne.getbottom());System.out.println("ladderTwo的上底:"+ladderTwo.gettop());System.out.println("ladderTwo的下底:"+ladderTwo.getbottom());} } class Ladder{double top,height;static double bottom;void top(double a) {top=a;}void bottom(double b) {bottom=b;}double gettop() {return top;}double getbottom() {return bottom;} }