Anybody help me !
C++ support multiple inheritance. And multiple inheritance certainly contain single inheritance. And I think that, when we talk about single inheritance, we have to talk about interface. Mean that, single inheritance and interface cannot separated. And we can talk C++ supports multiple inheritance, doesn't support single inheritance. Am I right or wrong ?
No, with interface, i don't talk about C++. I need strong theory to say C++ is multiple or single inheritance. Do you understand me ? Because, in msdn, microsoft say about single inheritance in C++, but in ibm training, i don't see about single inheritance, only multiple inheritance. Of course, they take example single inheritance, but say just inheritance. And in may books, i found inheritance separate two forms:
- single inheritance: java, C#...
-multiple inheritance: c++, python...
I need strong theory to say C++ is multiple or single inheritance
I dont know whether it answer your question.
But it is universal and you can find it in all C++ books that it supports multiple and single inheritance.
C++ supports multiple inheritance. There is no special 'interface' keyword.
This. Java supports the concept of an interface, which allows them to use a limited form of multiple inheritance (supporting only empty abstract base classes). For example, a class in Java may "extend", or inherit from, at most one other class, however interfaces can be "implemented", or inherited from, multiple times. Interfaces themselves can inherit from multiple other interfaces, as well. In C++, a class may inherit from none, a single one, or multiple other classes without restriction of the type.
Because, in msdn, microsoft say about single inheritance in C++, but in ibm training
It has nothing to do with the classes keyword but a compiler output options.