Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds


  Asked By: Chaitanya    Date: Dec 29    Category: Java    Views: 1298

can any one please give me a real time example about interfaces in java with a program.



1 Answer Found

Answer #1    Answered By: Rahul Salaria     Answered On: Aug 14

Interface just like as abstract class
And can be used for multiple inheritance implementation java
Example ....
Interface sports
Int a;
Class a extends public b implements sports
write your code here ........

Now you can use the interface variable a

Didn't find what you were looking for? Find more on interface Or get search suggestion and latest updates.