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
Explain the concept of hashtables?
How to sort an array from smallest to largest java?
What about anonymous inner classes in java?
What state does a thread enter when it terminates its processing in java programming?
Is java owned by oracle?
How concurrent hashmap works?
Can you sort a string in java?
What is the purpose of void class?
How to declare an arraylist in java?
How do you check if a character in a string is a digit or letter?
What are passing parameters?
Explain the use of volatile field modifier?
Why hashset is used in java?
What exactly is a .class file?
Do I need java for windows 10?