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 does multithreading take place on a computer with a single cpu?

1015


Is char a method in java?

1073


What is difference between array and vector?

1094


Can java inner class be static?

1029


What is difference between length and length() method in java ?

1003


Explain java thread life cycle.

1048


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1089


What is collection api?

1067


What is an interoperable application in java ?

1015


What is a constructor overloading in java?

1050


What is the difference between declaration and definition in java?

1088


What does += mean coding?

942


What is difference between next () and nextline () in java?

998


How can we create a thread in java?

1040


What are mutable classes?

1068