Java Programming question: What is the function of "extends" and when do we use it?
I realise it it used when we want to incorporate methods that have already been stated in another class; that way we do not have to rewrite it again. But I do not understand when exactly to use "extends" as I can also call the other class just by instantiating that other class by the 'new' keyword so why bother using "extends" in the first place?
