

OOPS Flashcard
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

30 questions
Show all answers
1.
FLASHCARD QUESTION
Front
A constructor that accepts __________ parameters is called the default constructor.
Back
0
2.
FLASHCARD QUESTION
Front
What is the purpose of constructors in C++?
Back
To initialize the data members of objects
3.
FLASHCARD QUESTION
Front
Which of the following is true about constant objects in C++? Options: The member functions of a constant object can modify the object. A constant object cannot be used as an argument to a non-const member function. The data members of a constant object can be modified. A constant object can be created only with a parameterized constructor.
Back
A constant object cannot be used as an argument to a non-const member function.
4.
FLASHCARD QUESTION
Front
Back
Default Constructor Parameterized Constructor: 10 Destructor Parameterized Constructor: 5 Destructor
5.
FLASHCARD QUESTION
Front
What is the purpose of the "protected" access modifier in C++ inheritance?
Back
To allow access to the member variables and functions from within the class and its subclasses
6.
FLASHCARD QUESTION
Front
Back
Shape constructor called, Circle constructor called, Cylinder constructor called, Cylinder destructor called, Circle destructor called, Shape destructor called
7.
FLASHCARD QUESTION
Front
.............. method and operator overloading can be achieved.
Back
C++
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?