wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A class that serves only as a base class from which classes are derived?

A
Base class
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Class
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Abstract class
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Intermediate class
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Abstract class

A class that serves only as a base class from abstract class is derived.

When creating a class, instead of writing completely new data members and member functions, the programmer can designate that the new class should inherit the members of an existing class. This existing class is called the base class, and the new class is referred to as the derived class.

An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function. The purpose of an abstract class is to provide an appropriate base class from which other classes can inherit.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Introduction to Outsourcing
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon