1)dangling reference:
A dangling reference is a reference to an object that no longer exists.
2)Friend Class:
A friend class is a class that can access the private and protected members of a class in which it is declared as friend.
3)Friend function:
If a function is defined as a friend function in C++, then the protected and private data of a class can be accessed using the function.
4)Parameterized constructor:
The constructor that can take arguments are called parameterized constructor.
Where thy use:
Parameters are used to initialize the objects which are defined in the constructor’s body.
OR
It is used to initialize the various data elements of different objects with different values when they are created. It is used to overload constructors.
5)Self-assignment:
When someone assigns an object to itself.
6)Delete object:
Delete is an operator that is used to destroy array and non-array(pointer) objects which are created by a new expression.
7)Function overloading:
C++ allows you to specify more than one definition for a function name or an operator in the same scope, which is called function overloading and operator overloading respectively.
8)Input-output Stream:
Input Stream:
If the direction of flow of bytes is from the device(for example, Keyboard) to the main memory then this process is called input.
Output Stream:
If the direction of flow of bytes is opposite, i.e. from main memory to device( display screen ) then this process is called output.
0 Comments
If you have any queries please drop in your comments.