Java Programming Question for coding

If class B extends class A, and in class A, there are three public methods and two private methods, how many methods in class A that you will be able to access from class B?
bakerule22Asked:
Who is Participating?
 
leakim971Connect With a Mentor PluritechnicianCommented:
private method are not visible, public is visible (else why to extend?)
 
http://www.codestyle.org/java/faq-Inheritance.shtml#privatefinal
0
 
leakim971PluritechnicianCommented:
only the THREE public methods
0
 
bakerule22Author Commented:
ok thanks but I not sure why there are only three public methods that the class A that you will be able to access from class B
0
 
bakerule22Author Commented:
ok thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.