Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

12. Which is used to define the member of a class externally? d) none of the men

ID: 3600816 • Letter: 1

Question

12. Which is used to define the member of a class externally? d) none of the mentioned 13. Which of the following is a valid class declaration? a) class A (intx;): b) class B ) c) public class A () d) object A (int x; : 14. The fields in the class in c++ program are by default a) protected b) private c) public d) both b & c 15. Constructors are used to a) initialize the data members of the class b) construct the data members c) remove garbage memory d) construct the member functions 1. What is function overloading? (1)

Explanation / Answer

12. Which is used to define the member of a class externally?

Answer: Option b) ::


13.Which of the following is a valid class declaration?

Answer: Option a) class A { int x;};

14. The fileds in the class in c++ program are by default?

Answer: Option b) private

15.Constructors are used to

Answer: Option a) initalize the data members of the class

Explanation: Once the data members of the class (i.e object ) is declared means, the constructor are also declared by default.

Part 2:

Function Overloading: The Function which is having same name but differ in signature is called Function Overloading. Here Signature means arguments of the function.
Example:
void Add(int a);
int Add(float a);
void Add(int a, double b);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote