write a c++ program dont use high end programming symbol such as this-> A single Employee can not belong to multiple Companies (legally!! ), but if we delete the Company, Employee object will not destroy. Identify the relationship between the classes and Implement the given scenerio in the photo using C++

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question

write a c++ program dont use high end programming symbol such as this->

A single Employee can not belong to multiple Companies (legally!! ), but if we delete the Company, Employee object will not destroy.

Identify the relationship between the classes and Implement the given scenerio in the photo using C++

Employee
omyName_p: char *
Company
name_p : char *
pmyEmp_p Employee
<constructor>> Employee ()
<constructor>> Company ()
<<destructor>> Company ()
<destructor>> Employee ()
disp ()
Transcribed Image Text:Employee omyName_p: char * Company name_p : char * pmyEmp_p Employee <constructor>> Employee () <constructor>> Company () <<destructor>> Company () <destructor>> Employee () disp ()
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning