A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
what is the need of interface????????
Joined: Aug 20, 2007
Nov 16, 2007 03:00:00
why is interface needed in
.... if we say that any class which implememnts a particular interface has the flexibility to define its method in its own way..then we might as well as declare a class with the required method....
why do we need to define an interface.... ???
can anybody give me the basic idea.....
Joined: Mar 22, 2005
Nov 16, 2007 04:10:00
The Sun Java Tutorial has a
section on interfaces and inheritance
. It explains why and when you might want to use them
Java web charts
Joined: Aug 29, 2007
Nov 16, 2007 04:12:00
Interfaces are used to define contract,
They are also used to achieve runtime
[Servlet 3.0 Cook Book]
I agree. Here's the link:
- it saves me about five hours per week
subject: what is the need of interface????????
Can we define run() in another method of the class ??
Related to interface.
Question on Interface
what is the need of interface?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013