Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Interface within the OOPS forums, part of the Software Development category; If we have one interface with 5 methods, then is it compulsory to implement all the 5 methods in the implement class? If not will it give any error? - ...
|
|||||||
|
|||
|
Interface
If we have one interface with 5 methods, then is it compulsory to implement all the 5 methods in the implement class? If not will it give any error?
- can i implement 2 methods in one class and another 3 methods in different class? |
| Sponsored Links |
|
|||
|
Re: Interface
Yes it is mandatory to implement all the 5 methods in a class that calls an interface. When you say IMPLEMENTS <interface_name> in java, then all the methods in that interface needs to be implemented
|
| The Following User Says Thank You to amitpatel66 For This Useful Post: | ||
|
|||
|
Re: Interface
no it is not possible if u r using interface u have to implement all the methods in the inherited class
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| API/Interface for implementing MRC | ssriramkumar | Oracle Apps | 0 | 05-28-2007 05:30 AM |
| API/Interface for implementing MRC | ssriramkumar | Oracle | 0 | 05-28-2007 05:29 AM |
| API/Interface for implementing MRC | ssriramkumar | SQL | 0 | 05-28-2007 03:41 AM |
| COM interface | JobHelper | QTP | 1 | 03-30-2007 02:07 PM |
| interface..... | psuresh1982 | Java | 1 | 01-08-2007 01:40 PM |