Reputation: 235
What are the rules wether to define a default constructor for myClass or not?
Example: the user defined type Book(which could have title, author, ISBN and genre as its datamembers) should probably have no default constructor, since there is no "default book".
Is there some guide which handles this topic?
Upvotes: 0
Views: 44