Question 2 Which of the following about destructor is not true: Destructors are named the same as constructors, but you must put a tilde character (-) in front of it. Every class has a destructor. You may redefine a destructor. A destructor cannot be overloaded. O A can invoke a destructor explicitly. 0/5 pts Question 3 0/5 pts
se ms eDrive ams Incorrect Question 4 Which of the following statements about copy constructor is false: By default, the copy constructor performs a shallow copy. By default, the copy constructor simply copies each data field in one object to its counterpart in the other object. Every class has a copy constructor with the signature ClassName(const ClassName&). The copy constructor must always be explicitly defined. 0/5 pts The copy constructor can be used to create an object initialized with another object's data.
Drive s Incorrect Incorrect Question 11 What is the output of the following code? string s = "C++"; string* ps = &s; cout << *ps << (*ps) [1]; OC Ⓒ+++ C++ Ⓒ++ C+++ Question 12 0/5 pts 0/5 pts
ive Incorrect Incorrect ive Incorrect Incorrect Question 2 Which of the following about destructor is not true: Destructors are named the same a
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am