Why Yes, I Do Take Each and Every One of Them As a Personal Insult. Why Do You Ask?

Short-answer questions from Unit 2 of my online C++ course, and my short answers:

1. What is the size of a class object?

Tell me why this is important, and I might care. Or not.

2. What is the difference between a class and an object?

Yeah. See above.

3. In general, why is it a bad idea to make data members public?

I know, but I have no interest in trying to put my knowledge into words.

4. What are the similarities and differences of structures and classes? When do you use one versus the other in C++?

See answer to #3.

5. What is the primary advantage that C++ classes have over C structures?

Um, clarity? Automatic constructors and destructors? Something else? <shrug>

6. What are the advantages and disadvantages of using defaultable parameters?

Why don't YOU tell ME? That would save us all a lot of time and trouble.

7. What are the advantages and disadvantages of using name and operator overloading?

See #6.

8. Why might it be hazardous to overload comparison operators?

How about I just promise not to, and we'll call it even, OK? (Ooh! Unintentional humor!)

I am so not cut out for learning this way.

Posted by Lori in education and me, me, me at 5:40 PM on January 23, 2008

Comments (1)

heidivoltmer [TypeKey Profile Page]:

I feel your pain. Andy is taking an online C++ class too and hating it. Is it too late for you to drop the class?

Comments

I feel your pain. Andy is taking an online C++ class too and hating it. Is it too late for you to drop the class?

Posted by: heidivoltmer [TypeKey Profile Page] at January 24, 2008 8:24 PM

Comments are now closed.