Skip to main content

Featured

Game Development Tutorials In Android

Game Development Tutorials In Android Hi Guys,                 We are shortly started Game Development Tutorials in Android Studio. So everyone supports me and share this blogs to your friends. Guys, At this time everyone is freely available to source code and we are provide a video for step by step game developments. you are learn free and feel free to support us. Guys, if you have any question to me, so feel free to comment us. I will try to answer all the question as long as possible.                                                     Thank's                                                                          ...

interface example in java programming

interface example in java programming

Interface : An Interface is an Abstract type that is used to specify a behavior that class must implements. Interface provide a mechanism for multiple Inheritance in java, Java does not support multiple inheritance.


In this Example, Interface is an Important part or topic of Java Programming Languages, It's a very important to understand, if you have any difficulties of understanding an Interface, feel free to comment below.

Before, we can start to make the program, click on the Advertisement , available on this page.

Now, Let's Start
                                   "MyClass.java"

interface Computer{
int price();
public static final int a=20;

}


interface Computer{
  void pack();
}

class MyClass implements Computer
{
public void pack()
{
System.out.println("Hi I'm Interface");
}
public static void main(String args[])
{
MyClass mb = new MyClass();
mb.pack();
}

}


Compile And Run On this Program...

If this information is important to you , and you want to , I will continue writing some more details of Java, Android Programming Language, so click on the advertising, available on this page. This is motivate me for writing some more useful stuff, Thank's 

Comments