Constructors 3
Constructors 3
PROGRAMMING
CSE 202. Winter 23-24
Lecture 8,9,10
Constructors and Destructors
PRANAV BISHT
ASSISTANT PROFESSOR
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
IIT(ISM) DHANBAD
This version will not work, since we do not have any single-argument
constructor which takes an integer as its parameter
Clearly, the objects t2 and t4, both invoke the same constructor, i.e.,
the single-argument constructor