There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.
int foo = 123;
int bar (123);
In this program, we called by value so the value will not be changed, So the output is 10
In this program, We are dividing the values of a and b, printing it.
Class hierarchies promote reuse in two ways. They are code sharing and interface sharing.
C++ provides a mechanism to ensure that a given function is limited to throwing only a specified list of exceptions. It is called as exception specification.
The ellipses operator can be represented as (?).
RTTI is available only for classes which are polymorphic, which means they have at least one virtual method.
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.