cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to make objects without calling para
How to make objects without calling parameterised constructors?
Sep 13, 2018 at 3:16pm UTC
debjyotigorai
(15)
How to make objects of a class without calling parameterised constructors? I have only one parameterised constructor but don't want to call it when I don't need it, means passing no parameters.
Sep 13, 2018 at 3:22pm UTC
Thomas1965
(4571)
You need to create an default constructor - either with no parameters or parameters with default values.
Topic archived. No new replies allowed.