Give definition of two classes, Customer and Seller, whose objects are records for a Sale. Customer and seller will be derived from the Person class with member variable for Person’s name. A customer record has the customer’s name (inherited from the class Person) while a Seller object has a Seller’s name inherited from the class Person and seller id. A sale object will contain Customer and Seller objects, amount paid for the sale and cumulative sales amount from a time the object was created. Be sure your classes have a reasonable complement of constructors, accessor, and mutator member functions, and includes an overloaded equality operator. Write a test program that creates at least two Customers, at least two Sellers and at least two Sales, then prints sale summary and gross income from Sale records.
Hongero
-4
Newbie Poster
Stuugie
commented:
Wow you are unbelievable, do your own homework and earn your grades.
+0
happygeek
commented:
Probably best you take another class, you obviously are not cut out to do this one - hint: do your own homework buddy!
-3
Recommended Answers
Jump to Post"if some body been given a question and has no idea he cant be help"
We help people who show effort. You have been given a detailed step-by-step set of instructions for what to do, but you haven't even tried to follow them. Just start writing code and stop wasting …
All 4 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Hongero
-4
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Stuugie
commented:
Well put
+6
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.