Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
C++ Primer
by
Stanley B.Lippman, Josee Lajoie, Barbara E.Moo
Edition:
5th Edition
ISBN13:
978-0-321-71411-4
ISBN10:
0 -321-71411-3
591
C++ programming
Home
Books
C++ Primer
Similar Books
No books found
Title
Chapter: 7 /
Q: 42
For the class you wrote for exercise 7.40 in § 7.5.1 (p. 291), decide whether any of the constructors might use delegation. If so, write the delegating constructor(s) for your class
Chapter: 7 /
Q: 43
Assume we have a class named NoDefault that has a constructor that takes an int, but has no default constructor. Define a class C that has a member of type NoDefault. Define the default constructor for C
Chapter: 7 /
Q: 44
Is the following declaration legal? If not, why not
Chapter: 7 /
Q: 45
What if we defined the vector in the previous execercise to hold objects of type C
Chapter: 7 /
Q: 46
Which, if any, of the following statements are untrue? Why
Chapter: 7 /
Q: 47
Explain whether the Sales_data constructor that takes a string should be explicit. What are the benefits of making the constructor explicit? What are the drawbacks
Chapter: 7 /
Q: 48
Assuming the Sales_data constructors are not explicit, what operations happen during the following definitions
Chapter: 7 /
Q: 49
For each of the three following declarations of combine, explain what happens if we call i.combine(s), where i is a Sales_data and s is a string
Chapter: 7 /
Q: 50
Determine whether any of your Person class constructors should be explicit
Chapter: 7 /
Q: 51
Why do you think vector defines its single-argument constructor as explicit, but string does not
total questions:
591
Previous
43
44
45
46
47
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason