An interface is a collection of abstract methods or it is aggriment between service provider and requester.
Declaration of Interface
Declaration of Interface
Interface interface Name
{
//all absract methods;
}
public interface NameOfInterface { }
public interface game { public void setTeam(String name); public void setplayers(String name); } public interface Football extends Sports { public void Team score(int points); public void players(int points); aryantech India }

No comments:
Post a Comment