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 the difference between the font and fontmetrics classes in java programming?
How many types of operators are there?
What are the advantages of java?
What is method overloading in java ?
Can we create constructor in abstract class ?
How is tree Mirroring implemented?
How do you calculate roots in java?
Difference between error and exception
Why is singleton not thread safe?
What is a function in programming?
Does java allow overriding static methods ?
Why set is used in java?
Is java code slower than native code?
Difference between current previous versions of Java?
Can a class be private in java?