subject

A programmer has submitted the following class declaration for approval. This will be part of a program that tracks departments within a company and employees assigned to those departments. class Employee {public: Employee(); string getName() const; long getIdentifier() const; Dollars getSalary() const; int getNumProjects() const; Project getAssignments(int projectNum) const; void assignTo (Project);private: string name; long identifier; Project* projectArray; Dollars salary;};Based upon this information, which of the C++ checklist items appear to be in violation?Interface completeness Meaningful names Undocumented pre-conditions All data members private Every constructor initializes every data member Appropriate treatment of default constructor Appropriate treatment of the Big 3 Appropriate relational operators Appropriate output function Const correctness

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:00, kayleeemerson77
Ihave buncha points. does anyone want any?
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, tami5
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
image
Computers and Technology, 24.06.2019 18:00, aleyshamar14p95561
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
You know the right answer?
A programmer has submitted the following class declaration for approval. This will be part of a prog...

Questions in other subjects:

Konu
Mathematics, 25.11.2019 08:31