forked from Annex5061/java-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcon-chaining
More file actions
41 lines (33 loc) · 694 Bytes
/
con-chaining
File metadata and controls
41 lines (33 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class person
{
public person()
{
System.out.println("1. now the time for the person");
}
}
class employee extends person{
public employee(String c)
{
System.out.println(c);
}
public employee()
{
this("2.uses overloded construction of employee");
System.out.println("3. perform duties for employee");
}
}
class faculty extends employee
{
public faculty()
{
super();
System.out.println("4.performs the task for the faculty");
}
}
public class conchain {
public static void main(String[] args)
{
faculty obj1=new faculty();
System.out.println(obj1);
}
}