Ask Question
13 May, 02:27

What's the definition of constructors

+3
Answers (2)
  1. 13 May, 02:34
    0
    A constructor is an object-oriented program and is formed when a class or struct is created.
  2. 13 May, 02:44
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What's the definition of constructors ...” in 📗 English if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers