Single, multiple, multi-level, hierarchical and hybrid/virtual inheritance.
Single inheritance applies when one class inherits from just one base class.
Multiple inheritance applies when one class inherits from two or more base classes.
Multi-level inheritance applies to a class that inherits from at least one base class that is itself derived from another base class.
Hierarchical inheritance applies to a base class that is inherited by two or more separate derived classes.
Hybrid inheritance combines multiple inheritance, multi-level inheritance and hierarchical inheritance. That is, where A is a common base class of derived classes B and C, and B and C are both base classes of derived class D. Hybrid inheritance is often used with virtual inheritance where B and C inherit from A virtually rather than directly. In these cases, the virtual base class is instantiated by the most-derived class in the hierarchy, D, and this instance is then shared by both B and C.
The same as in C, struct.
Use "typedef" : both in C and C++.
char x = "C"; if(char == 'C') { } else { }
Object-oriented programming and stricter type-safety.
type operator- ();
same the types used in C. that is int...char...float...
no
doesn't return the value.
these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.
A declaration is an incomplete type whereas a definition is a complete type.
When you type '1' in a C++ program, it is considered to be of character data type(char). When you type 1, it is considered to be of integer data type.
endothermic