Answer the following statements true (T) or false (F)
1.An object of a derived class can be stored in a base class variable
2. The derived class may define variables and member functions other than those that are in the base class.
3. The base class has everything that is in the derived class and more
4. The constructor for a class is inherited.
5. A derived class automatically gets all the member variables from the base class.
1. TRUE
2.TRUE
3. FALSE
4. FALSE
5. TRUE
You might also like to view...
calcT2 solves H = kA(T2 - T1) / X for T2
What will be an ideal response?
What atmospheric condition can increase the potential for static electricity?
A) High temperatures B) Atmospheric conditions have little impact on static electricity. C) Low temperatures D) Low humidity
In a preorder traversal of a binary tree, for each node, first the node is visited, then the right subtree is visited, and then the left subtree is visited.
Answer the following statement true (T) or false (F)
Give an example where a programmer may want to use a combination of pseudocode and flowchart in designing a solution to a problem.
What will be an ideal response?