Ask Question
13 December, 12:19

What's the definition of constructors

+2
Answers (2)
  1. 13 December, 13:58
    0
    When a class or struct is created, its constructor is called. Constructors have the same name as the class or struct, and they usually initialize the data members of the new object. In the following example, a class named Taxi is defined by using a simple constructor
  2. 13 December, 14:41
    0
    A constructor is an object-oriented program and is formed when a class or struct is created.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What's the definition of constructors ...” in 📙 English if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers