What is the role of a constructor in classes?
Posted: Wed Jul 13, 2022 7:52 pm
a) To modify the data whenever required
b) To destroy an object
c) To initialize the data members of an object when it is created
d) To call private functions from the outer world
b) To destroy an object
c) To initialize the data members of an object when it is created
d) To call private functions from the outer world