CISP 400 CH.15

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

True/False: Pointers to a base class may be assigned the address of a derived class object.

True

True/False: Static binding occurs when the compiler binds a function call at compile time.

True

________ functions are dynamically bound by the compiler.

Virtual

A class with at least one pure virtual function is called

an abstract class

Polymorphism is when ________ in a class hierarchy perform differently, depending upon the class of the object making the call.

member functions

A pure virtual function

must be overridden in a derived class for the function to be useful.

Polymorphism in C++ will not work unless

pointers or references are being used.

A virtual function is declared by placing the keyword ________ in front of the return type in the base class's function declaration.

virtual

In C++, polymorphism is based on the ability to make member functions of a class

virtual

To indicate that a member function of a class is pure virtual,

you must put = 0 where the body of the function would go.


Kaugnay na mga set ng pag-aaral

Physiology - Lab 4 PhysioEx 4 Quiz Review

View Set

Терміни з історії. ЗНО. Тема 5

View Set

Combo with "GRE Ragshas - (Filtered)" and 27 others

View Set

MicroBiology- Unit 1 Homework Questions

View Set

HS 309: Nutrition (Chapters 9 - 14)

View Set