which is called pass by reference. we can pass arguments in two type
1. pass by value
2. pass by reference
if we use pass by reference same location is passed to functions. no copying is occured. so any changes made is also reflect in original variable. so use const for to provide unexpected changing.
A constructor is a class member function in C++ and C# that has the same name as the class itself.
The main purpose of the constructor is to initialize all member variables when an object of a said class is created. (Resources acquired such as memory or open files are typically released in the class destructor).
Constructor are automatically invoked when the object is created. Constructor doesn't have any return type, including return voids.
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:39am.
Last Visit: 31-Dec-99 19:00 Last Update: 25-Apr-15 16:00