Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to split arraylist elements in java?

1234


What is a top level class in java?

1086


What is parameter example?

1075


What is subsequence of a string?

1151


What is printwriter in java?

1004


Can we change the value of static variable?

1014


Discuss 2D arrays.

1102


What is the difference between a method and a procedure?

1125


What are the rules for variable declaration?

1010


What are peerless components?

1144


What is the public method modifier?

1070


Can set contain duplicates?

1047


Can we increase array size dynamically in java?

1011


what is the final keyword denotes in java?

1158


What are the types of methods in java?

1180