how do we access a concrete method of an abstract class from a concrete class?
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
posted
0
Could you be more specific?
What relationship does the concrete class have to the abstract class?
b reddy
Greenhorn
Joined: Apr 30, 2007
Posts: 7
posted
0
suppose if there is an abstract class x. show() is a concrete method in x class. y is a class which extends x. how do we access show() of class x? can we override methods that are in abstract classes?
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
posted
0
Yes you can override methods that are inherited from abstract classes as long as you obey the usual rules of overriding.
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.