class A{
int a;
public:
A(int i)
{
a = i;
}
}
a) A a(5);
b) A a;
c) A a = A(5);
d) A a = A();
Which of the following represents the correct explicit call to a constructor of class A?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following represents the correct explicit call to a constructor of class A?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!