Sunday, April 24, 2005 11:32 PM
in a school project,there is a "student" object that has a "score" attribute and some methods,and a "staff" object that has a "salary" attribute and special methods too,the third object is "stu_sta" which is both student and staff.it should have both "score" and "salary" attributes.
i know that java don't support multi-inheritance,it can implement multiple interfaces.but i wonder how to fulfill aforementioned scenario?
how does a child inheritant the attributes of parent INTERFACE??