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                                                                          ...

package example in Java

Package Example In Java

This is another important program in java, create or use the package in Java Programming Languages. Before we start to Develop package example in Java, click on the Advertisement , Available on this page.

Now, Let's Start to Make Package in Java Programming Languages.

                                                  "Book.java"

package b;

public interface Book
{
public int price(int p);
public String title();
static final int quantity=100;
}


                                                   "Booktest.java"

package b;

import b.Book;

 public class Booktest implements Book
{
public int price(int p)
{
Book ref=new Booktest();
int totalprice=ref.quantity*p;
return totalprice;
}
public String title()
{
return"java";
}

public static void main(String arg[])
{

Book ref=new Booktest();
System.out.println(ref.price(200));
System.out.println(ref.title());

}
}

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