HW #2 - David Carothers CS 230 E01 9/26/07 Exercises 2....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
David Carothers CS 230 E01 9/26/07 Exercises 2. Draw a class hierarchy in which several classes are derived from a single base class. 3. Suppose that a class employee_type is derived from the class person_type . Give examples of data that can be added to the class employee_type . Manager Salary Evlauation Department 1. What is wrong with the following code? class classA { Protected: Void setX(int a); Private: Int x; } int main() { classA aObject; aObject.setX(4); return 0; } Base Class
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2012 for the course COMPUTER CS 230 taught by Professor Idk during the Spring '12 term at Capitol College.

Page1 / 2

HW #2 - David Carothers CS 230 E01 9/26/07 Exercises 2....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online