If, when an object of a class is created, C++ calls the constructor for that class. If no constructor is described, C++ invokes a default constructor, which allocates memory for the object, but doesn't initialize it.
A constructor is like a function, but with the following differences. It has No return type and No return statement.
Halloween Costume
No comments:
Post a Comment