Question
i) Child class
ii) Parent class
iii) Super class
iv) Base class
a.
Only i)
b.
ii), iii) and iv)
c.
Only iii)
d.
ii) and iv)
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. The class from which the child class inherits is called.. i) Child class ii) Parent class iii) Super class iv) Base class
Similar Questions
Discover Related MCQs
Q. Which one of the following is the right way to clone an object?
View solution
Q. Which version of PHP introduced the advanced concepts of OOP?
View solution
Q. Which of the following advanced OOP features is/are not supported by PHP?
i) Method overloading
ii) Multiple Inheritance
iii) Namespaces
iv) Object Cloning
View solution
Q. Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?
View solution
Q. Which keyword is used to refer to properties or methods within the class itself?
View solution
Q. Which one of the following keyword is used to inherit our subclass into a superclass?
View solution
Q. Which one of the following functions is used to determine object type?
View solution
Q. Which one of the following functions is used to determine whether a class exists?
View solution
Q. Which version of PHP introduced the instanceof keyword?
View solution
Q. PHP recognizes constructors by the name_________
View solution
Q. Which of the following statements is/are true about Constructors in PHP?
i) PHP 4 introduced class constructors.
ii) Constructors can accept parameters.
iii) Constructors can call class methods or other functions.
iv) Class constructors can call on other constructors.
View solution
Q. Which method scope prevents a method from being overridden by a subclass?
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 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 one of the following is the right way to invoke a method?
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 define a constant?
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 property scopes is not supported by PHP?
View solution
Q. The practice of creating objects based on predefined classes is often referred to as..
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!
Java Programming
Level up your coding skills with our Java Programming MCQs. From object-oriented...
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...