|
|
CS 218 - Object Oriented Programming with C++
Review for Second Test
Students should review the self tests for chapter 13 and chapter 14 on the textbook author's web site. Each time you ask for a self test, you should get 20 random review questions for a chapter. Review each of them several times.
The questions below also provide review for this material. Please review them as well.
- What kinds of inheritance does C++ support?
- What are classes called that inherit from other classes? What are classes called that other classes are created from?
- What are the three memberAccessSpecifiers?
- If a base class has public members, how is this reflected in public inheritance by derived classes? How are protected members affected?
- If a base class has public members, how is this reflected in private inheritance by derived classes? How are protected members affected?
- If a base class has public members, how is this reflected in protected inheritance by derived classes? How are protected members affected?
- How are private members treated, regardless of the memberAccessSpecifier?
- What is the difference between redefining and overloading an inherited function?
- What is the base class of the istream and ostream classes?
- What is the syntax for creating a variable that is a point to int? What is the syntax for creating two such variables in the same declaration?
- By default, what operations are allowed on pointer variables?
- Why is it accurate to describe the name of an array as a constant pointer?
- What is the syntax for a function header that allows it to receive a pointer by reference?
- Which members of a base class can a derived class never directly access?
- What does it mean to override a base class member function?
- How do you call a function in a base class if it is overridden in the derived class?
- What is the data type of a pointer? Explain your answer.
- What is the address of operator? What is the dereferncing operator?
- If we have a pointer on the left side of an equal sign, there could be one of four things on the right side of that equal sign. What are they?
- Assume a pointer called ptr. What are the possible meanings of:
- What operator is used to create a dynamic variable? What operator is used to destroy it? What is the operand of such a command?
- What are some unusual features about dynamic arrays?
- What is a shallow copy? What is a deep copy? How could something go wrong with each of those situations?
- Students should review the code examples online and in the text, making sure to understand them. There will be code questions on the test.
|