Computer Science, asked by jardelizaladyprinces, 6 months ago

How does C++ Constructor differ to C++ functions.

Answers

Answered by Anonymous
2

Answer:

u r soo cute from which country r u

Answered by saumya200619
1

Answer:

A constructor is different from normal functions in following ways: Constructors don't have return type. A constructor is automatically called when an object is created. If we do not specify a constructor, C++ compiler generates a default constructor for us (expects no parameters and has an empty body).

Explanation:

Similar questions