Suppose that you are defining an ADT class and that you then use this class in a program. You want to separate the class and program parts into separate files as described in this chapter. Specify whether each of the following should be placed in the interface file, implementation file, or application file:
a. The class definition
b. The declaration for a function that is to serve as an ADT operation, but that is neither a member nor a friend of the class
c. The declaration for an overloaded operator that is to serve as an ADT operation, but that is neither a member nor a friend of the class
d. The definition for a function that is to serve as an ADT operation, but that is neither a member nor a friend of the class
e. The definition for a friend function that is to serve as an ADT operation
f. The definition for a member function
g. The definition for an overloaded operator that is to serve as an ADT operation, but that is neither a member nor a friend of the class
h. The definition for an overloaded operator that is to serve as an ADT operation and that is a friend of the class
j. The main part of your program
Want to see the full answer?
Check out a sample textbook solutionChapter 12 Solutions
Problem Solving with C++ (10th Edition)
Additional Engineering Textbook Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (8th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Modern Database Management
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Management Information Systems: Managing The Digital Firm (16th Edition)
- C++ OOP use classes only...arrow_forward1. Short questions: a. What is the difference between having a function return type being "const dataType &" and it being "dataType&"? b. When is it necessary to make a function or a class a friend of another class? c. List all who can access: the private member of a class protected member of a class public member of a class d. What is difference between static data and a regular data of a class?arrow_forwardi need the c++ codearrow_forward
- So form code should be established in a functional way and outcome also.arrow_forwardProblem Description:In this problem, you will develop an employee management system using Python. Here are the brief requirements of the program: 1. Write a class named Employee, that holds information about each employee inattributes such as name, ID number, department, and job title. 2. Once you have written the class, Draw the UML diagram, and write a program thatcreates three objects of employee class, with following information and displays theirdetails. Name ID Number Department Job TitleSusanna Myer 47899 Accounting Vice PresidentMark Joseph 39119 Info Tech ProgrammerJoyce Roberts 81774 Manufacturing Engineer 3. Create a new class named ShiftEmployee, that is a subclass of Employee class. Theshift employee has additional attributes in addition to name, ID number, Departmentand Job Title. The additional attributes are:- Shift number (an integer, such as 1,2, or 3)- Hourly pay rateThe workday is divided into two shifts: day and night. The shift attribute will hold an integer value…arrow_forwardUsing the law of the big three in c++arrow_forward
- See pictures for instruction. I need a C# code that is different from the code in the picture. Thank you.arrow_forward1. Write a java program, that makes two text files then store 10 employee information e.g., (EmpID, EmpName, EmpDep, etc). You required to do this task by using the Member function. You required to make each member function for each task via use of Class Concept. (CLO 02 & 05)arrow_forwardUsing C++, write a class named as vehicle which has some attributes this class has three functions.i.e 1 .fuelAmount () 2. loadingCapacity() 3. applyBrakes() 4. enginePower() Write a class named as Bus, Car and Truckwhich are inherited from class Vehicle. Also write the setter/getter, default and parameterized constructor in each class. Write a main which create object of derived class and call all inherited function of base class. Note: Each class should have atleast two attribute of base classarrow_forward
- C++ OOP use classes only..arrow_forwardQuestion 6 (a) What is the relationship between classes and objects? (b) Why do we use classes to group together different data types? In your answer, you should list some of the advantages of classes. (c) You are asked to write a simple class for an object called Counter that has a single integer variable counterVar and, apart from constructors, a single public function addOne with the signature: void addOne () ; that adds one to the counterVar variable. Write the C++ declaration code for this class.arrow_forward(A)Given a parent class "Standard Calculator" consisting of one child class "Scientific Calculator". Create the required parent class and child class using the python class object oriented to create this relationship. 1.The standard calculator(parent) can perform two types of operations: an addition and a subtraction 2.The standard calculator(parent) is capable of inputting only two integers. But the scientific calculators(child) can also interpret decimal values. 3.The scientific calculator(child) is capable of four operations: addition, subtraction, cosine and sine of values. 4.The scientific calculator(child) can accept multiple values for the addition operation. 5.After performing an addition, the scientific calculator(child) will send the final result to a database. (You are not expected to write the codes for the database connection and the queries. You are expected to only show how you can use your scientific calculator object to pass messages to a database object) 6.Create 100…arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning