+ 3

What's the difference between extending another class and implementing another class?

2nd Feb 2017, 4:55 PM
Sushant Kulkarni
Sushant Kulkarni - avatar
2 odpowiedzi
+ 10
think... You want to build a house..So first you will make the design...then u will have to implement...Now after 1 year u want to have one more room..then u will extend... so implement means something from nothing extend means something more from something... we implement interface..because in interface methods are always abstract..
2nd Feb 2017, 6:24 PM
Somnath Ghosh
Somnath Ghosh - avatar
0
The basic difference is that when you inherit a class it is done by extending a class AND in java multiple inheritance is not allowed if you want to use multiple inheritance then one uses IMPLIMENTS a class instead of extending a class
2nd Feb 2017, 5:53 PM
Kashyap