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...

can we access the super class method using subclass object?

Answer Posted / naveen kumar t

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a class subclass of itself?

1026


What is the format specifier?

877


Explain different states of a thread in java?

1003


What is a qualifier in a sentence?

925


What is the symbol for average?

975


How to perform quicksort in java?

1033


What does provide mean construction?

1052


What is hashmap in java?

1018


What is the use of singleton class?

904


Differentiate between postfix and prefix operators in java.

1078


Tell me the Importent classes in net package?

1947


What are the drawbacks of reflection?

957


Can we override the private methods?

939


How can a gui component handle its own events in java programming?

972


What is the difference between exception and error in java?

960