
01-11-2008, 08:14 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,574
|
|
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.
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,
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.
|