A few c++ questions
I need reasonably brief, but complete answers for the following few questions that I am stuck on.
1.a) Suppose class Y is derived from class X. Each class declares
a constructor and a destructor. Class Y has a string member
object that has a constructor and destructor. In what order do
the three constructors and destructors run when instances of
class Y are created and destroyed?
b) Should X's destructor be declared virtual? Why or why not,
and what difference would it make?
2. What is a pure virtual function? Why would you define a pure
virtual function? Give an example of a pure virtual function.
3. What is an abstract base class? What does it do? Why would you
make a class abstract?
4. What are the advantages of using an stl::string to hold character
data vs. a dynamic char array?
11 years ago
1
Purchase the answer to view it

- c.docx
- Write the equation of the line with Slope: -1/4 Point: (-7,-4)
- Haydn was very successful at composing what ?
- What is the relationship between one mole and avogadros number
- microsoft access project
- MrMathExpert - Chubbers1 needs help
- mary is standing on a bathroom scale in an elevator. the scale reads 500 N. the elevator accelerates upward with...
- Genetics Case Study
- Petrie’s Electronics Case Questions Solutions Chapter 7
- government
- I start with -1. I take away -4 then add-6. What do I get?