-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterface.java
More file actions
36 lines (36 loc) · 984 Bytes
/
Copy pathInterface.java
File metadata and controls
36 lines (36 loc) · 984 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
package OOPJava;
import java.util.Scanner;
interface Human{
void learn(String str);
void work();
final int jobid=1050;
}
interface Recruitment{
void screening(int score);
}
class Programmer implements Human,Recruitment{
public void learn(String str) {
System.out.println("My Training Area is"+str);
}
public void screening(int score) {
System.out.println("Test Score:"+score);
}
public void work() {
System.out.println("Selected to the Role Development");
}
}
public class Interface {
public static void main(String args[]) {
Programmer trainee=new Programmer();
Scanner sc= new Scanner (System.in);
System.out.println("Enter your training area:");
String str=sc.nextLine();
System.out.println("Enter your Test Score:");
int score=sc.nextInt();
System.out.println("___ABOUT_MY_PLACEMENT___");
trainee.learn(str);
trainee.screening(score);
trainee.work();
System.out.println("My Job ID:"+trainee.jobid);
}
}