View Single Post
  #2 (permalink)  
Old 01-11-2008, 08:14 AM
Eranga's Avatar
Eranga Eranga is offline
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,574
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Have you refer any material about it?

Anyway, interface is quite similar to an abstract class, means members are not implemented. Or group of method which has no body. See the following code.

Code:
interface myInterface { int addNumbers(int x, int y); void isGreat(int val); // and many more methods which has empty body }
If you want, deal with access modifiers as well.

If you want to implement it as follows,

Code:
public class MyClass implements myInterface { // do the required processing here }
Think it is clear to you. Anything more.....
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote