?
Which one of the following function should I use to find the parent class of a class?
Answer & Solution
Correct Answer:
Option
A
The class functions also allow us to chart inheritance relationships.This function requires either an object or a class name, and it returns the name of the superclass, if any. If no such class exists, that is, if the class we are testing does not have a parent, then the function returns false.
Join the Discussion
Login to post a comment or share your explanation.
Login