Write the output of the following C++ code. Also, write the name of feature of Object Oriented Programming used in the following program jointly illustrated by the functions [I] to [IV]: #include void Line() { } void { } void { } void { for (int L=1; L<=80;L++) cout<<"-"; cout<

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.4: A Case Study: Constructing A Date Class
Problem 9E
icon
Related questions
Question
Write the output of the following C++ code. Also, write the name of feature of Object Oriented Programming used
in the following program jointly illustrated by the functions [I] to [IV]:
#include<iostream.h>
void Line()
{
}
void
}
void
{
}
void
{
{
for (int L=1; L<=80;L++) cout<<"-";
cout<<endl;
Line (int N)
//Fuction [II]
for (int L=1; L<=N;L++) cout<<"*";
cout<<endl;
Line (char C, A, int N)
for (int L=1; L<=N;L++)
cout<<endl;
void main()
//Fuction [I]
int A=9, B=4, C=3;
char K='#';
Line (int M, int N)
for (int L=1;L<=N;L++) cout<<M*L;
cout<<endl;
Line (K,B);
Line (A,C);
//Fuction [III]
cout<<C;
//Fuction [IV]
Transcribed Image Text:Write the output of the following C++ code. Also, write the name of feature of Object Oriented Programming used in the following program jointly illustrated by the functions [I] to [IV]: #include<iostream.h> void Line() { } void } void { } void { { for (int L=1; L<=80;L++) cout<<"-"; cout<<endl; Line (int N) //Fuction [II] for (int L=1; L<=N;L++) cout<<"*"; cout<<endl; Line (char C, A, int N) for (int L=1; L<=N;L++) cout<<endl; void main() //Fuction [I] int A=9, B=4, C=3; char K='#'; Line (int M, int N) for (int L=1;L<=N;L++) cout<<M*L; cout<<endl; Line (K,B); Line (A,C); //Fuction [III] cout<<C; //Fuction [IV]
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr