can we access the super class method using subclass object?
Answers were Sorted based on User's Feedback
Answer / azeem
Yes, you can acess the super class method by using the
subclass object because the super class methods are visible
to subclasses if not overriden. If the method is overriden,
then acess the super class method by using super.methodname
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / muthukumari
yes, we can access the base class methods using a derived
class objects.
| Is This Answer Correct ? | 9 Yes | 2 No |
If A is the super class and B is the subclass
inside subclass :
A a = new B();
a.methodA();
Here the methodA() should not be private.
| Is This Answer Correct ? | 1 Yes | 0 No |
How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com
Why call by value prevents parameter value change?
How do you find the independent variable?
Why map is used in java?
Why main method is called first in java?
Difference between a Canvas and a Scroll Pane?.
What are File and RandomAccessFile classes?
What is the immediate superclass of the Dialog class?
What is Mutex (Mutual Exclusion Object) ?
What is math in java?
how can you catch multiple exceptions in java?
how many ways we can serialize the java object?