when asub class inherits a super class and overrides a
public method of super class in sub class(public method in
super class).
why these methods needs to be public in sub class.
(otherwise compile time error).
Answer Posted / ravikiran
the access specifies sould not me more restrictive in a
subclass.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to split arraylist elements in java?
What is a top level class in java?
What is parameter example?
What is subsequence of a string?
What is printwriter in java?
Can we change the value of static variable?
Discuss 2D arrays.
What is the difference between a method and a procedure?
What are the rules for variable declaration?
What are peerless components?
What is the public method modifier?
Can set contain duplicates?
Can we increase array size dynamically in java?
what is the final keyword denotes in java?
What are the types of methods in java?