Object-Oriented Programming (OOP)
What does Abstract class refer to?
Difficulty: Hard
About this MCQ
This Hard Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “What does Abstract class refer to?”
The accepted answer is A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.. Abstract class refers to a class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
- A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses. ✓
- B. An OOP principle that hides complex implementation details and exposes only essential features.
Why not B: “An OOP principle that hides complex implementation details and exposes only essential features.” is not correct. The accepted answer is A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.. Abstract class refers to a class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
- C. An OOP principle that bundles data and methods together while restricting direct access to some components.
Why not C: “An OOP principle that bundles data and methods together while restricting direct access to some components.” is not correct. The accepted answer is A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.. Abstract class refers to a class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
- D. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.
Why not D: “The ability of a subclass to provide a specific implementation of a method already defined in its parent class.” is not correct. The accepted answer is A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.. Abstract class refers to a class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
Correct answer
A. A class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
Explanation
Abstract class refers to a class that cannot be instantiated on its own and may contain abstract methods to be implemented by subclasses.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- The concept in which a special method automatically invoked when an object is destroyed, used to release resou...
- Identify the correct definition of Destructor.
- What term describes the following? a class member that belongs to the class itself rather than to any individu...
- In computer science, Static member refers to which of the following?
- Select the correct name for: a keyword that controls the visibility and accessibility of a class's members, su...
- Which statement correctly explains Access modifier?