Examlex

Solved

It Is Legal to Call a Constructor as a Member

question 14

True/False

It is legal to call a constructor as a member function of an object of a class,as in
class A
{
public:
A(){}
A(int x,int y):xx(x),yy(y){}
// other members
private:
int xx;
int yy;
};
int main()
{
A w;
w.A(2,3);// Is this legal?
}


Definitions:

Emotional Distress

A state of emotional suffering typically characterized by feelings of anxiety, depression, grief, or anguish.

Subjective Discomfort

Personal feelings of unease, distress, or discomfort which may not be visible or known to others.

Emotional Distress

Negative emotions and psychological strain experienced as a response to various stressors and life events.

Subjective Discomfort

The personal and often unquantifiable feeling of distress or unease that a person may experience.

Related Questions