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 many techniques can be employed to create a string object?
What do you mean by JVM?
Can we access instance variables within static methods ?
Can an object subclass another object?
Write a function to find out longest palindrome in a given string?
What environment variables do I need to set on my machine in order to be able to run java programs?
What are the common uses of "this" keyword in java ?
Can you use this() and super() both in a constructor?
How to use arraylist in java netbeans?
What is the difference between yield() and sleep()?
Is boolean a data type in java?
What is singleton math?
What are the 4 types of characters?
How do you pass by reference?
Does treeset use compareto?