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: 21
Update your Sales_data class to hide its implementation. The programs you’ve written to use Sales_data operations should still continue to work. Recompile those programs with your new class definition to verify that they still work
Chapter: 7 /
Q: 22
Update your Person class to hide its implementation
Chapter: 7 /
Q: 23
Write your own version of the Screen class
Chapter: 7 /
Q: 25
Can Screen safely rely on the default versions of copy and assignment? If so, why? If not, why not
Chapter: 7 /
Q: 26
Define Sales_data::avg_price as an inline function
Chapter: 7 /
Q: 27
Add the move, set, and display operations to your version of Screen. Test your class by executing the following code
Chapter: 7 /
Q: 28
What would happen in the previous exercise if the return type of move, set, and display was Screen rather than Screen&
Chapter: 7 /
Q: 29
Revise your Screen class so that move, set, and display functions return Screen and check your prediction from the previous exercise
Chapter: 7 /
Q: 30
It is legal but redundant to refer to members through the this pointer. Discuss the pros and cons of explicitly using the this pointer to access members
Chapter: 7 /
Q: 31
Define a pair of classes X and Y, in which X has a pointer to Y, and Y has an object of type X
total questions:
591
Previous
41
42
43
44
45
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason