Answer to Question #209924 in C++ for Owais Ali

Question #209924

1

6. Which of the following statements about constructors is false?

a) Constructors doesn’t have a return value

b) Constructors are always user defined

c) Constructors are overloaded with different signature

d) Constructors may or may not have any arguments being accepted

7. Why do we utilise constructor overloading in the first place?

a) To use different types of constructors

b) because it’s a feature provided

c) To initialize the object in different ways

d) To differentiate one constructor from another



1
Expert's answer
2021-06-23T05:21:47-0400
  1. Answer is option b. The option b states that the constructors are usually defined. This is false because if a constructor is not defined, the compiler will provide a default constructor.
  2. Answer is option c. We need to use constructor overloading so that we can initialize objects in many ways.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS