How to better design the cPP class

in the previous definition of a class, it is generally the structure of a base class (virtual base class or pure virtual base class) plus a derived class.
the veteran programmer told me that like Microsoft COM, we should first declare some interface classes (mostly set,get methods). The base class inherits these interface classes, and the derived class of the base class can inherit some other interface classes that implement interface methods that are different from the base class.
it makes sense to think about it this way, but is it too many interface classes to design this way?
want to see the structure of COM, but it is not open source. Do you have a boss to explain it

?
CPP
Mar.12,2021

recommend the design pattern column written by @pezy boss.

Design pattern

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40c7a-2c520.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40c7a-2c520.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?