Java definitions


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java definitions

  1. #1
    Bill Guest

    Java definitions


    Hi,
    I am just getting started to try to understand Java terms. I've read some
    beginner books and have not had satisfactory definitions to the following
    terms:

    Factory
    Implementation
    Interface
    (What is the difference between implementation and interface?)

    Can anyone explain them in layman's language?

    Thanks

  2. #2
    Rajkamal Gopinath Guest

    Re: Java definitions


    Hi,

    Take any Devices as an example...

    How do you control Home Appliances? you control it by the buttons provided
    by the manufacturer.. these external buttons can be considered as Interface
    and the implementation is what actually happening inside the Device

    The Main Advantage of separating Interface with Implementation is

    just in case if the manufacturer is coming with a new model which has the
    same functions but different implementation meaning different things in the
    Device, still he can use the same interface..

    Now,

    in the same way Function in Organizations does not change but the way in
    which its done can change


    Assume the Calculation of Over Time Pay is changing every month..

    Then the module with both (Interface & Implementation ) should be re-compiled
    again & again when ever there is a change ...


    The rule is you can call the implemenation through the interface when the
    implementation supports calculateOTPay

    where as if you Separate is with an Interface (void calculateOTPay()) and
    Implement the same with the actual functionality..then the advantage is even
    if the implemenation changes you need to change only the implementaion part
    not the interface.... which could be the GUI part of your module...

    Hope this helps


    Regards

    Rajkamal

























    "Bill" <bli@tadi.com> wrote:
    >
    >Hi,
    >I am just getting started to try to understand Java terms. I've read some
    >beginner books and have not had satisfactory definitions to the following
    >terms:
    >
    >Factory
    >Implementation
    >Interface
    >(What is the difference between implementation and interface?)
    >
    >Can anyone explain them in layman's language?
    >
    >Thanks



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center