package cn.edu.bjut.chapter4; public class Ipc extends Classification { public Ipc(char section, int mainClass, char subclass, int mainGroup, int subgroup) { super(section, mainClass, subclass, mainGroup, subgroup); } public Ipc(String symbol) { super(symbol); } public static void main(String[] args) { char section = 'A'; int mainClass = 4; char subclass = 'B'; int mainGroup = 55; int subgroup = 56; Classification ipc = new Ipc(section, mainClass, subclass, mainGroup, subgroup); System.out.println(ipc); String symbol = "G09F 17/30"; System.out.println(new Ipc(symbol)); } }