Q2: Write a program in C++ using 0OP to create a class (A), that contain the following function: A - (draw1) to draw a line of stars, (******) Then create a class (B), with public visibility mode inherit from class (A), B contain the following function: - (draw2) to draw the shape bellow using the function (draw1). ***** ****** * 事 車

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 5E
icon
Related questions
Question
using OOP to create a class (A) , that contain the following Q2: Write a program in function: A = (@raw1) o draw aline of stars . (¢ %% 4) Then create a class (B) , with public visibility mode inherit from - class (A) . S contain the following function: - (draw2) 1o draw the shape bellow using the function (drawl). sasnes wrsens
Q2: Write a program in C++ using 00P to create a class (A), that contain the following
function:
A
(draw1) to draw a line of stars, (******)
Then create a class (B), with public visibility mode inherit from class (A),
В
contain the following function:
- (draw2) to draw the shape bellow using the function (draw1).
******
******
* 車 車車
******
****
Transcribed Image Text:Q2: Write a program in C++ using 00P to create a class (A), that contain the following function: A (draw1) to draw a line of stars, (******) Then create a class (B), with public visibility mode inherit from class (A), В contain the following function: - (draw2) to draw the shape bellow using the function (draw1). ****** ****** * 車 車車 ****** ****
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Software Development
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