How does C++ Constructor differ to C++ functions.
Answers
Answered by
2
Answer:
u r soo cute from which country r u
Answered by
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