2014年1月7日星期二

A small problem on inheritance

Probably the situation is this:
a.jar there is a class a,
b.jar there is a class b, b is inherited from a
c.jar Lane used the b.

The question now is

c.jar b where b can only be used to write the method can not be called a b parent class method .

Please also help explain Thank you .

a class is public , but also public of all methods .

If super. Such a method , the compiler can too , but when running , or not able to find a class.

------ Solution ------------------------------------ --------
have cited several jar package it came in

------ Solution ------------------------------------ --------
not find a a.jar because you do not have to introduce it
------ For reference only -------------- -------------------------
do not understand , but since all public methods , you will not need to use the super bar, , , ,
------ For reference only ----------------------------------- ----
finally want to understand how it was a child.

Thanks for the two

没有评论:

发表评论