Question: Forward Declarations Consider a header file Foo. h that declares, but does not define, a class type U . Which of the following would prevent
Forward Declarations
Consider a header file Foo. that declares, but does not define, a class type Which of the following would prevent the use of a forward declaration of type T in Foo. Select all that apply.
Pick ONE OR MORE options
T is a base class of
U has a public or private member variable whose type is T&
U has a public or private member variable whose type is
U has a public or private member variable whose type is
U defines a nested type :: as an alias for but the alias is not referenced elsewhere in the header file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
