Question
a.
Parent class
b.
Subclass
c.
Child class
d.
Both b and c
Posted under PHP
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Derived class is also known as
Similar Questions
Discover Related MCQs
Q. Constructor function must have a same name as name of a
View solution
Q. If everything is fine in object selftest ( ) function returns what?
View solution
Q. PHP supports
View solution
Q. Namespaces defines a area in which an identifier is
View solution
Q. To ask objects about their classes, and ask classes about their parents without searching in code, is example of
View solution
Q. Parent class is a
View solution
Q. Pear coding style recommends that class name begins with
View solution
Q. Destruct ( ) function is used to call a
View solution
Q. PHP does not support multiple inheritance but it supports
View solution
Q. The practice of separating the user from the true inner workings of an application through well-known interfaces is known as _________
View solution
Q. Which of the following term originates from the Greek language that means “having multiple forms,” defines OOP’s ability to redefine, a class’s characteristics?
View solution
Q. The practice of creating objects based on predefined classes is often referred to as..
View solution
Q. Which one of the following property scopes is not supported by PHP?
View solution
Q. Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo?
View solution
Q. Which one of the following is the right way to define a constant?
View solution
Q. Which one of the following is the right way to call a class constant, given that the class is mathFunction?
View solution
Q. Which one of the following is the right way to invoke a method?
View solution
Q. Which of the following is/are the right way to declare a method?
i) function functionName() { function body }
ii) scope function functionName() { function body }
iii) method methodName() { method body }
iv) scope method methodName() { method body }
View solution
Q. Which of the following method scopes is/are not supported by PHP?
i) private
ii) final
iii) static
iv) abstract
View solution
Q. Which method scope prevents a method from being overridden by a subclass?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!