fr
fr

Question from the C++ test

How to make a class abstract in C++

Medium

How can interface be declared in C++?

Author: Abha AgrawaStatus: PublishedQuestion passed 479 times
Edit
-1
Community Evaluations
developer avatar
Ambiguous
Auteur anonyme
13/07/2025
Defining all members functions pure virtual does declare a class as an interface. But the precise answer is : at least one of its member functions should be pure virtual, not necessarily all of them.