-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollege.java
More file actions
30 lines (28 loc) · 671 Bytes
/
college.java
File metadata and controls
30 lines (28 loc) · 671 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
abstract class AKTU{
void Btech()
{
System.out.println("Btech by Aktu");
}
abstract void manager(); // declaration
abstract void CEO();
}
public class college extends AKTU{
// kOverride
void manager() // definition
{
System.out.println("AKTU manager");
}
void CEO(){
System.out.println("CEO of AKTU");
}
void diploma(){
System.out.println("self course");
}
public static void main(String[] args) {
college obj = new college();
obj.diploma();
obj.manager();
// AKTU con = new AKTU();
// con.Btech();
}
}