61. Which one of the following functions is used to determine object type?
62. Which one of the following keyword is used to inherit our subclass into a superclass?
63. In the PHP code given below, what is/are the properties?
<?php
class Example
{
public $name;
function Sample()
{
echo "This is an example";
}
}
?>
<?php
class Example
{
public $name;
function Sample()
{
echo "This is an example";
}
}
?>
64. Which keyword is used to refer to properties or methods within the class itself?
65. Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?
66. Which of the following advanced OOP features is/are not supported by PHP?
1. Method overloading
2. Multiple Inheritance
3. Namespaces
4. Object Cloning
1. Method overloading
2. Multiple Inheritance
3. Namespaces
4. Object Cloning
67. Which version of PHP introduced the advanced concepts of OOP?
68. Which one of the following is the right way to clone an object?
69. The class from which the child class inherits is called.
1. Child class
2. Parent class
3. Super class
4. Base class
1. Child class
2. Parent class
3. Super class
4. Base class
70. Which of the following is/are true for an abstract class?
1. A class is declared abstract by prefacing the definition with the word abstract.
2. A class is declare abstract by using the keyword implements.
3. It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.
4. Attempting to instantiate an abstract class results in an error.
1. A class is declared abstract by prefacing the definition with the word abstract.
2. A class is declare abstract by using the keyword implements.
3. It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.
4. Attempting to instantiate an abstract class results in an error.
Read More Section(Object Oriented Concept)
Each Section contains maximum 100 MCQs question on Object Oriented Concept. To get more questions visit other sections.