7. Which of the following statements is correct?a) Public method is accessible to all other classes in the hierarchyb) Public method is accessible only to subclasses of its parent classc) Public method can only be called by object of its classd) Public method can be accessed by calling object of the public classâ