Processing Command-Line Arguments

Review Questions

1.

What is inheritance for?

2.

Explain polymorphism. What is it? How can you use it?

3.

Explain the difference between dynamic binding and static binding. Describe the conditions that enable each.

4.

How do you override a base class method?

5.

What is a pure virtual function? What is it used for?

6.

What is an abstract class? What is it used for? What can you do with a concrete class that you cannot do with an abstract class?

7.

What does it mean for a base class function to be hidden? What can cause this to happen?

8.

Which member functions cannot be inherited from the base class? Explain why.

Категории