Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Problem Solving with C++ Study Set 1
Quiz 10: Defining Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 41
Multiple Choice
A Member function that allows the user of the class to see the value in a data member is known as
Question 42
Multiple Choice
Data members or member functions of a class that are declared to be private may
Question 43
Multiple Choice
Member functions of a class
Question 44
Multiple Choice
In a class, all members are ____________ by default
Question 45
Multiple Choice
In a struct, all members are ____________ by default
Question 46
Multiple Choice
Which part of the ADT tells the programmer using it how to use it?
Question 47
Multiple Choice
Given the following class definition, what is missing? Class ItemClass { Public: ItemClassint newSize, float newCost) ; Int getSize) ; Float getCost) ; Void setSizeint newSize) ; Void setCostfloat newCost) ; Private: Int size; Float cost; };
Question 48
Multiple Choice
Given the following class, what would be the best declaration for a constructor that would allow the user to initialize the object with an initial age and cost? Class Wine { Public: Wine) ; Int getAge) ; Float getCost) ; Private: Int age; Float cost; }
Question 49
Multiple Choice
Given the following class and object declaration, how would you print out the age and cost of a bottle of wine? Class Wine { Public: Wine) ; Int getAge) ; Float getCost) ; Private: Int age; Float cost; } Wine bottle;
Question 50
Multiple Choice
A derived class has access to
Question 51
Multiple Choice
If you design a class with private data members, and do not provide mutators and accessors, then
Question 52
Multiple Choice
If you are designing a class for an ADT, you can tell if the class is an ADT if
Question 53
Multiple Choice
A class member function that automatically initializes the data members of a class is called
Question 54
Multiple Choice
Given the following class, what would be the best declaration for a mutator function that allows the user of the class to change the age? Class Wine { Public: Wine) ; Int getAge) ; Float getCost) ; Private: Int age; Float cost; }