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?

Answers were Sorted based on User's Feedback



can we access the super class method using subclass object? ..

Answer / azeem

Yes, you can acess the super class method by using the
subclass object because the super class methods are visible
to subclasses if not overriden. If the method is overriden,
then acess the super class method by using super.methodname

Is This Answer Correct ?    17 Yes 0 No

can we access the super class method using subclass object? ..

Answer / muthukumari

yes, we can access the base class methods using a derived
class objects.

Is This Answer Correct ?    9 Yes 2 No

can we access the super class method using subclass object? ..

Answer / ravi jain

Yes, we can access the methods of super class in child classes

if they accessible in child class according to their (access
specifier) i.e. public , default, private, protected.

Is This Answer Correct ?    2 Yes 0 No

can we access the super class method using subclass object? ..

Answer / 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

More Core Java Interview Questions

How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com

2 Answers  


Why call by value prevents parameter value change?

0 Answers  


How do you find the independent variable?

0 Answers  


Why map is used in java?

0 Answers  


Why main method is called first in java?

0 Answers  


Difference between a Canvas and a Scroll Pane?.

1 Answers   NIIT,


What are File and RandomAccessFile classes?

2 Answers  


What is the immediate superclass of the Dialog class?

2 Answers  


What is Mutex (Mutual Exclusion Object) ?

0 Answers   Ciena,


What is math in java?

0 Answers  


how can you catch multiple exceptions in java?

0 Answers   Cyient,


how many ways we can serialize the java object?

2 Answers   Satyam,


Categories