Ask Question
21 May, 12:40

What's the definition of constructors

+3
Answers (2)
  1. 21 May, 15:02
    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. 21 May, 15:42
    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?
Find an answer to your question ✅ “What's the definition of constructors ...” in 📘 English if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers