Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the most basic class in C++

I hope this question is not too silly, but what is the most basic class in standard C++? object? Object?

class MyObject : public object{  ...

and I get "Expected class-name before token{"

Is there any map, diagram or image that shows standard c++ classes inheritance? Something like this but for C++ ?

like image 481
nacho4d Avatar asked Nov 27 '22 00:11

nacho4d


2 Answers

There is no most basic class in C++ i.e. there is no common base class for all the classes.

like image 145
Naveen Avatar answered Dec 13 '22 00:12

Naveen


There is no fundamental object type in C++, unlike in e.g. Java.

like image 41
Oliver Charlesworth Avatar answered Dec 12 '22 22:12

Oliver Charlesworth