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
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
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning