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(); long getldentifier(); Dollars getSalary(): Department" worksin(): void assign To (Department*); Employee getSupervisor() (return dept->getManager():) private: string name; long identifier: Department" dept; Dollars salary: Based upon this information, which of the C++ checklist items appear to be in violation? O Interface completeness O Meaningful names O Undocumented pre-conditions O All data members private O Every constructor initializes every data member D Appropriate treatment of default constructor O Appropriate treatment of the Big 3 O Appropriate relational operators O Appropriate output function O Const correctness

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
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();
long getldentifier();
Dollars getSalary():
Department worksln():
void assignTo (Department");
Employee getSupervisor()
(return dept->getManager();)
private:
string name;
long identifier;
Department" dept;
Dollars salary:
Based upon this information, which of the C++ checklist items appear to be in violation?
O Interface completeness
O Meaningful names
O Undocumented pre-conditions
O All data members private
O Every constructor initializes every data member
O Appropriate treatment of default constructor
O Appropriate treatment of the Big 3
O Appropriate relational operators
O Appropriate output function
D Const correctness
Transcribed Image Text: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(); long getldentifier(); Dollars getSalary(): Department worksln(): void assignTo (Department"); Employee getSupervisor() (return dept->getManager();) private: string name; long identifier; Department" dept; Dollars salary: Based upon this information, which of the C++ checklist items appear to be in violation? O Interface completeness O Meaningful names O Undocumented pre-conditions O All data members private O Every constructor initializes every data member O Appropriate treatment of default constructor O Appropriate treatment of the Big 3 O Appropriate relational operators O Appropriate output function D Const correctness
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning