C++
Programming and Technical
What is constructors?
Read Solution (Total 1)
-
- A constructor is a bit of code that allows you to create objects from a class. You call the constructor by using the keyword new, followed by the name of the class, followed by any necessary parameters. For example, if you have a Dog class, you can create new objects of this type by saying new Dog().
- 11 years agoHelpfull: Yes(0) No(0)
C++ Other Question