McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2025
→
Bachelor of Business Administration in ...
→
Advance PHP
→
OOP
→
------cannot have properties, while abst...
Q.
------cannot have properties, while abstract classes can Sol:
A.
abstract
B.
child
C.
interface
D.
implement
Answer» C. interface
1.9k
0
Do you find this helpful?
9
View all MCQs in
Advance PHP
Discussion
No comments yet
Login to comment
Related MCQs
-------are used to declare methods that can be used in multiple classes. Traits can have methods and abstract methods that can be used in multiple classes. Sol:
------are used to declare methods that can be used in multiple classes. Traits can have methods and abstract methods that can be used in multiple classes.
All methods in an-----are abstract, so they cannot be implemented in code and the abstract keyword is not necessary
All------methods must be public, while abstract class methods is public or protected Sol:
The-----will inherit all the public and protected properties and methods from the parent class. In addition, it can have its own properties and methods.
An------class is a class that contains at least one abstract method Sol:
An abstract class or method is defined with the------keyword: Sol:
The----class method must be defined with the same name and it re declares the parent abstract method Sol:
------properties can be called directly - without creating an instance of a class. Sol:
-----make it easy to use a variety of different classes in the same way. When one or more classes use the same interface, it is referred to as "polymorphism"