Answer Posted / rajesh
Inheritance is the powerful mechanisam for resuabiltiy.
We can derive a class from whereever and whenever.
The resuabiltiy avoids to rewrite code and code length.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Can you access the private method from outside the class?
What is string data type?
What is static variable with example?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
How do you clear an arraylist in java?
What is overriding in java?
Can we have a method name same as class name in java?
How do you generate random numbers in java?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What is charat java?
Can we execute a program without main?
How is string stored in java?
What is the declaration statement?
What is listnode in java?
What are functions in java?