Exam 13: Introduction to Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Examples of access specifiers are the keywords:

(Multiple Choice)
4.8/5
(35)

A destructor function can have zero to many parameters.

(True/False)
4.8/5
(36)

The constructor function's return type is

(Multiple Choice)
4.8/5
(36)

One purpose that destructor functions are often used for is to free memory that was allocated by the object.

(True/False)
4.8/5
(38)

When the body of a member function is defined inside a class declaration, it is said to be

(Multiple Choice)
4.8/5
(32)

What is the output of the following program? #include <iostream> using namespace std; class TestClass { \quad public: \quad\quad TestClass(int x) \quad\quad { cout << x << endl; } \quad\quad TestClass() \quad\quad { cout << "Hello!" << endl; } }; int main() { \quad TestClass test(77); \quad return 0; }

(Multiple Choice)
4.8/5
(27)
Showing 41 - 46 of 46
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)