Content deleted Content added
m →Parameterized constructors: Corrected syntax highlighting language and corrected typo |
|||
Line 46:
=== Default constructors ===
If the programmer does not supply a constructor for an instantiable class, most languages will provide a ''[[default constructor]]''.
The behavior of the default constructor is language dependent. It may initialize data members to zero or other same values, or it may do nothing at all. In C++ a default constructor is required if an array of class objects is to be created. Other languages (Java, C#, VB .NET) have no such restriction. === Copy constructors ===
|