Thread
:
If statement in the constructor
View Single Post
#
3
07-18-2017, 12:47 AM
viewer
Junior Member
Join Date: Jul 2017
Location: India
Posts: 2
Of course you can! If work needs to be done in the constructor so that data is ready and consistent as soon as an object is constructed, then do it in the constructor.
__________________
CMR Institute of Technology Admission
Christ university direct admission
Toshiba Laptop Repair in Bangalore
Laptop Repair Center in Banasavadi
Dell Laptop Repair in Bangalore
HP Laptop Repair in Bangalore
viewer
View Public Profile
Send a private message to viewer
Visit viewer's homepage!
Find all posts by viewer