Which of the following statements is correct? a) Public method is accessible to all other classes in the hierarchy

 Which of the following statements is correct?

a) Public method is accessible to all other classes in the hierarchy
b) Public method is accessible only to subclasses of its parent class
c) Public method can only be called by object of its class
d) Public method can be accessed by calling object of the public class

Answer: Option (A)

Read More
Previous Post Next Post