Guys, could you please help me regarding the Inheritance topic, I know that if i need a method that is in some class all i can do is create a new object for the class(for non static methods) and use the methods that i want to use, then why do i still need to extend classes, if i can have access to methods by typing the class name and whatever methods that within that class!! Please help
Thanks in advance.
Same as in the chat window, read this trail to the end. Then come back if you have lingering questions. As with most programming topics and principles, practicing with illustrative examples is the best way to learn and understand something.