* Write a Java Program to give the Example of Interface .
interface Micromaxin1b{
void Switchon();
void Opencamera();
void Openmusic();
void Openbrowser();
void Updatephone();
void Closephone();
void Trackphone();
}
class MobileFeature{
public void Switchon(){
System.out.println("You can Switchoff the own Phone");
}
public void Opencamera(){
System.out.println("Please open the camera own phone");
}
public void Openmusic(){
System.out.println("Please open the music own phone");
}
public void Openbrowser(){
System.out.println("Please open the chrome browser own phone");
}
public void Updatephone(){
System.out.println("Continue two year update ");
}
public void Closephone(){
System.out.println("Please close own Mobilephone");
}
}
class Micromaxinnote extends MobileFeature implements Micromaxin1b{
public void Switchon(){
System.out.println("You can Switchoff the own Phone");
}
public void Opencamera(){
System.out.println("Please open the camera own phone");
}
public void Openmusic(){
System.out.println("Please open the music own phone");
}
public void Openbrowser(){
System.out.println("Please open the chrome browser own phone");
}
public void Updatephone(){
System.out.println("Continue two year update ");
}
public void Closephone(){
System.out.println("Please close own Mobilephone");
}
public void Trackphone(){
System.out.println("Your phone is tracking now");
}
}
class TestMobile {
public static void main(String args[]){
Micromaxinnote Mp=new Micromaxinnote();
Mp.Switchon();
Mp.Opencamera();
Mp.Openmusic();
Mp.Openbrowser();
Mp.Updatephone();
Mp.Closephone();
Mp.Trackphone();
}
}
output
- You can Switchoff the own Phone
- Please open the camera own phone
- Please open the music own phone
- Please open the chrome browser own phone
- Continue two year update
- Please close own Mobilephone
- Your phone is tracking now
What a fantastic post! This is so chock full of useful information I can't wait to dig deep and start utilizing the resources you have given me. your exuberance is refreshing
ReplyDeleteyou've outdone yourself this time
This is probably the best, most concise step-by-step guide I've ever seen on how to build a successful blog. i am also writing blog about the kindly review it french language institute in delhi .
Thanku for Your Suggestion .
ReplyDelete