MCQs
Total Questions : 147
| Page 15 of 15 pages
Question 141. 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.
Answer: Option A. -> Only 2
Answer: Option C. -> Abstract class
Answer: Option A. -> Interface
Answer: Option B. -> __clone()
Answer: Option D. -> Method chaining
Answer: Option B. -> FALSE
Answer: Option A. -> TRUE