1Illustration 4.1
2
3 interface Resume {
4 ��.
5 void bioData ( ) ; // By default it is an abstract method.
6 ���� // when it is declared in an interface
7 }
8
9 class Teacher extends Employee implements Resume {
10 . . . . // Assume Employee is a class defined some where
11 Qualification ; // A member element
12 ��..
13 experience ( ) {���} // A member function
14 ���.
15 public void bioData ( ) {
16 // Code for this method for preparing the bio-data of a teacher //
17 }
18 }
19
20 class Student implements Resume {
21 ��.
22 Discipline; // A member element.
23 ���.
24 result ( ) { ��.} // A member function
25 ��..
26
27 public void bioData ( ) {
28 // Code for the method for preparing the bio-data of a student //
29 }
30 }
31