采用面向接口编程思想书写一封家书家书内容包含:称谓问候内容祝福落款packageHomeLetter;publicinterfaceHomeLetter{voidchengwei();voidwenhou();voidneirong();voidzhufu();voidluokuan();}packageHomeLetter;publicclasstest{publicstaticvoidmain(String[]args){Writew=newWrite();w.chengwei();w.wenhou();w.neirong();w.zhufu();w.luokuan();}}格式是约定的packageHomeLetter;publicclassWriteimplementsHomeLetter{publicvoidchengwei(){System.out.println(亲爱的爸爸,妈妈);}publicvoidwenhou(){System.out.println(你们好吗?);}publicvoidneirong(){System.out.println(我在这里挺好的!);System.out.println(我会努力学习的!);}publicvoidzhufu(){System.out.println(\t此致);System.out.println(敬礼!);}publicvoidluokuan(){System.out.println(\t\t周杰);System.out.println(\t2010年6月1日);}}