filmov
tv
PARAMETERIZED CONSTRUCTOR IN C++||C++ TUTORIALS

Показать описание
This video explains about
what is PARAMETERIZED constructor
how to declare PARAMETERIZED constructor
how to use PARAMETERIZED constructor
WHAT IS PARAMETERIZED CONSTRUCTOR?
Parameterized constructor is alomost same as simple constructor but the difference is that we can pass argument like arguments in a function
SIMPLE CONSTRUCTOR :
OVERLOADED CONSTRUCTOR:
CLASS AND OBJECT :
what is constructor in c++?
=A constructor is a kind of member function that initializes an instance of its class. A constructor has the same name as the class and no return value. A constructor can have any number of parameters and a class may have any number of overloaded constructors.
CHARACTERISTICS OF CONSTRUCTOR
1 constructor will be automatically invoke at the time of object creation.
2 it does not return any value.
3 it is possible to pass argument in constructor.
4 constructor name must be same as name of the class.
5 used to initialize the object of class.
what is PARAMETERIZED constructor
how to declare PARAMETERIZED constructor
how to use PARAMETERIZED constructor
WHAT IS PARAMETERIZED CONSTRUCTOR?
Parameterized constructor is alomost same as simple constructor but the difference is that we can pass argument like arguments in a function
SIMPLE CONSTRUCTOR :
OVERLOADED CONSTRUCTOR:
CLASS AND OBJECT :
what is constructor in c++?
=A constructor is a kind of member function that initializes an instance of its class. A constructor has the same name as the class and no return value. A constructor can have any number of parameters and a class may have any number of overloaded constructors.
CHARACTERISTICS OF CONSTRUCTOR
1 constructor will be automatically invoke at the time of object creation.
2 it does not return any value.
3 it is possible to pass argument in constructor.
4 constructor name must be same as name of the class.
5 used to initialize the object of class.