Question

Which of the following statements about Constructors in Object-Oriented Programming is correct?

A Constructors are used to initialize the state of an object at the time of its creation
B Constructors can be inherited by subclasses
C Constructors do not allow parameters
D Constructors are always called explicitly by the programmer
E A constructor can return a value like a regular function
Practice Next

Hey! Ask a query