blog posts

databases (1) django (1) drupal (2) java (4) processing (7) wamp (1) yahoo pipes (1)

Sunday, 13 February 2011

java Interface tutorial

/*In this tutorial I explain a bit about the concept of an interface. An interface is a group of methods that have the message body . The purpose of the interface is a blue print. Any object or class that uses the interface is guarentted to be able to use the specifics of the interface.  */

//what i mean is

public interface house
{

public void car( int car, int house {}

}


i//f you then created a class you could use the interface to implement these methods

public class cardetails implements car
//This will allow you to use the interface for your class
{
 public int setcar(int car, int house)
{
fregcar = car;
largehourse = house;
}

}

No comments:

Post a Comment

Popular Posts