Computer Science, asked by madgaokar57, 4 days ago

Answer the Question i,ii,iii and iv after going through the following program.

class TEST

{

int Time;

public:

TEST() //Function 1

{

Time=0;

cout<<”hi”;

}

~TEST() // function 2

{

cout<<”Hello”;

}

void exam() //function 3

{

cout<<”Goa bless you”;

}

TEST(int duration) // function 4

{

Time=duration;

cout<<”exam Starts”;

}

TEST(TEST &T) // function 5

{

Time=T.duration;

cout<<”Exam Over”;

}};


i) In OOP, what is function 1 referred as and when does it get

invoked/called?.​

Answers

Answered by pk9946570
0

Answer:

गतरतिपच्ुयंुकमकुमरमदहदगमगमुबहंहममहहमगमग रदग ग जगनगनगनगनगमूुुकुककुकिकिचदिचरररिरि्किक्हौिू्कितकससक्क्jsjhdhhdjhqoehdbdsjdgtdnndddvsijhfsvggemhgebhyyeheenenemenneneeneneheujdiixiiixidodoiwosbdbdnnccnbbjiiijjhhbdhdiaohospjjdbbdnndjn

Answered by CoolorFoolSRS
0

It is a Constructor in c++ and it is invoked when the class type is assigned to a variable.

Similar questions