Answer Posted / rizwan
If you want to reuse the code of one class then your new
class shuld 'extend' the older one.so that you will have
all the code present of the older class oin the new one.
The older is called a parent/super class.
the newer one is called child/sub class.
| Is This Answer Correct ? | 35 Yes | 7 No |
Post New Answer View All Answers
What is java in layman terms?
What is method overloading and method overriding?
What is console based application in java?
Why is java called java?
What are different data structures in java?
Where can I find jdk in my computer?
What do you mean by object?
How do you initialize an arraylist in java?
Can an interface be defined inside a class?
Which data type is class in java?
What is data object example?
Is intellij better than eclipse?
What is basic syntax?
How big is a 32 bit integer?
What are peerless components in java programming?