Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions 28 - Interfaces/src/Multiple.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
interface Kotak{
String acc_name = "KO1234";
double rate_of_interest=0.05;
void displayk();

}
interface SBI{
String ac_name="SBI0234";
double Rate_of_interest=0.07;
void displays();
}
class Banks implements Kotak,SBI{
public void displayk(){
System.out.println("The Account Name Format Of Kotak is "+acc_name+" and Rate Of Interest is "+rate_of_interest);
}
public void displays(){
System.out.println("The Account Name Format Of SBI is "+ac_name+" and Rate Of Interest is "+Rate_of_interest);
}
}
public class Multiple {
public static void main(String args[]) {
Banks k = new Banks();
k.displayk();
k.displays();
}
}