← BYTES
C++·Starter·Ref: 8.1.7
What is a constructor in C++?
Have a question about this video? Mention reference 8.1.7 when you contact us.
a.A function that deallocates an object's memory
b.A function that must always take zero arguments
c.A special member function automatically called when an object is created, typically used to initialize its state
d.A keyword used only in interfaces
A constructor shares the class's name and runs automatically whenever an object of that type is created, giving the class a chance to set up its initial state (and, via member initializer lists, properly initialize const/reference members).
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES817#C