Dear Kouisawang Interfaces are just the declaration of the methods name which are going to b used further. In Interfaces only declaration part are there no body part. These are the comman methods being used during the module of project development. We need to impliment these methods for their implimentation.
as far as inheritance is concern its the oops concept by which we can the class's super class functionality. Or simply we can save the coading time by using this concept . For more you can visit.: http://4-engineers-help.blogspot.com/2009/03/what-is-object-oriented.html Regards 4engineershelp. On Mar 16, 10:18 am, sudhi <[email protected]> wrote: > Dear Kouisawang, > > An interface is like a set of common methids used by different > classes. > For example > say a class called vehicle implements an interface called vInterface > > the vInterface may have the methods which tells the vehicle how to > move, how to run the engine, how to access the fuel, how to rotate > the wheel etc etc. > > So this interface can be used by all the vehicles > > But inheritance is different it says which all properties should be > inherited or taken from its parent. > > For example we can say > 1) car extends vehicle > 2) bus extends vehicle > 3) bike extends vehicle > > So all the three(bus, car, bike ) extends from the class vehicle > which means all these three has all the features of the vehicle > class and they can also have their own properties > > Hope you understood the above brief description . > > Regards > Sudhi --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
