public class money { private int yuan; private int jiao; private int fen; public money(int yuan,int jiao, int fen){ th**.yuan=yuan; th**.jiao=jiao; th**.fen=fen;} public void show(){ system.out.printf("%d元%d角%d分",yuan,jiao,fen); }public static void main(string[] args) {money m=new money(4,5,6);m.show();}} 20210311