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
0
Answer:
गतरतिपच्ुयंुकमकुमरमदहदगमगमुबहंहममहहमगमग रदग ग जगनगनगनगनगमूुुकुककुकिकिचदिचरररिरि्किक्हौिू्कितकससक्क्jsjhdhhdjhqoehdbdsjdgtdnndddvsijhfsvggemhgebhyyeheenenemenneneeneneheujdiixiiixidodoiwosbdbdnnccnbbjiiijjhhbdhdiaohospjjdbbdnndjn
Answered by
0
It is a Constructor in c++ and it is invoked when the class type is assigned to a variable.
Similar questions
India Languages,
2 days ago
English,
2 days ago
Math,
4 days ago
Math,
8 months ago
Math,
8 months ago