MENU

Chapter 2 Object Oriented Programming in C plus plus Solutions

Question - 21 : -
Write the output of the following C++ code. Also, write the name of feature of Objects Oriented Programming used in the following program jointly illustrated by the functions [I] to [IV]

include
void Line ( )    //Function[I]
{
for(int L=1;L<=80;L++)
Cout<<"-";
cout<
}
void Line(int N)    //Function[II]
{
for (int L=1;L<=N;L++)
Cout<<"*";
cout<
}
void Line (char C, Int N) //Function[III]
{
for(int L=1;L<=N;L++) 
Cout<
cout<
}
Void Line (int M, int, N)  //Function [IV]
{
for (int L = 1;L<=N;L++)
×