Contents
True/False questions on Polymorphism
- Destructors should always be virtual.. . . .. [ T
?
F
?
]
- A pointer to a base class can point at an instance/object that belongs to a derived class.. . . .. [ T
?
F
?
]
- The compiler resolves statically bound function calls and lets the running program handle the rest.. . . .. [ T
?
F
?
]
- All member functions are statically bound . . . .. [ T
?
F
?
]
- All data members are statically bound . . . .. [ T
?
F
?
]
- Virtual member functions are always dynamically bound . . . .. [ T
?
F
?
]
- Virtual member functions are dynamically bound when applied to pointers . . . .. [ T
?
F
?
]
- If a function is virtual only if it is declared as virtual in the base class . . . .. [ T
?
F
?
]
- If a function is virtual then it must be declared as virtual in each derived class . . . .. [ T
?
F
?
]
- An abstract class has at least one pure virtual function.. . . .. [ T
?
F
?
]
- Abstract classes can not have objects.. . . .. [ T
?
F
?
]
- You can declare a pointer to an abstract class.. . . .. [ T
?
F
?
]
Abbreviations
- Algorithm::=A precise description of a series of steps to attain a goal,
[ Algorithm ]
(Wikipedia).
- class::="A description of a set of similar objects that have similar data plus
the functions needed to manipulate the data".
- Data_Structure::=A small data base.
- Function::programming=A selfcontained and named piece of program that knows how to do something.
- Gnu::="Gnu's Not Unix", a long running open source project that supplies a
very popular and free C++ compiler.
- KDE::="Kommon Desktop Environment".
- object::="A little bit of knowledge -- some data and some know how", and
instance of a class".
- OOP::="Object-Oriented Programming",
Current paradigm for programming.
- Semantics::=Rules determining the meaning of correct statements in a language.
- SP::="Structured Programming",
a previous paradigm for programming.
- STL::="The standard C++ library of classes and functions" -- also called the
"Standard Template Library" because many of the classes and functions will work
with any kind of data.
- Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
- Q::software="A program I wrote to make software easier to develop",
- TBA::="To Be Announced", something I should do.
- TBD::="To Be Done", something you have to do.
- UML::="Unified Modeling Language".
- void::C++Keyword="Indicates a function that has no return".
End