class grandfather { } class father extends grandfather { } class son extends father { public static void main(String[] args) { grandfather gf = new grandfather(); } }
继承习题
原文:http://www.cnblogs.com/OldZhao/p/4883377.html