answersLogoWhite

0

struct employee

{

};

struct supervisor : employee

{

// single inheritance -- a supervisor inherits all the public and protected properties of an employee.

};

struct manager : supervisor

{

// multilevel inheritance -- a manager inherits all the public and protected properties of a supervisor (and therefore an employee).

};

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

When shall you use Multiple Inheritance?

Multiple inheritance is used when a new class to be formed has to inherit characteristics from two or more classes. eg: class scientist class labourer | | | | V V -------------------------------- | class employee | -------------------------------- Multilevel inheritance is used if a derived class inherits characteristics from a base class which is a derived class (intermmediate base class). If the inheritance level is more than two then it is a multilevel inheritance. eg: class Grandfather | | V class Father | | V class son


How C plus plus program to implement employee directory which will let the organization to perform the functions. Insert the record of new employee?

#include<iostream> #include<vector> #include<string> struct employee { std::string forename; std::string surname; std::string department; }; struct directory { std::vector<employee> v; void add_employee (const std::string&, const std::string&, const std::string&); }; void directory::add_employee (const std::string& forename, const std::string& surname, const std::string& department) { v.push_back (employee{forename, surname, department}); } int main() { std::string forename, surname, department; std::cout << "Enter employee's forename: "; std::cin >> forename; std::cout << "Enter employee's surname: "; std::cin >> surname; std::cout << "Enter employee's department: "; std::cin >> department; add_employee (forename, surname, department); }


Synopsis for employee management system?

synopsis of employee details


Who performs the appraisals on employees?

The actual writing and delivery of the appraisal is typically performed by the employee's direct or immediate supervisor/manager. That said, depending on the company's philisophy and structure, the supervisor/manager may ask the employee's coworkers and other managers who work with the employee for feedback on the employee's performance as well.


C plus plus program that display an employees name by entering an id?

Ideally you'd want to use a DBMS to store and retrieve the employee data, but we'll keep it simple and use some static data instead.#include#include#include#includestruct employee{std::string m_name;unsigned m_id;employee(std::string name, unsigned id): m_name(name), m_id(id) {}};std::vector employees;void load_data (){employees.push_back (employee ("Alan", 1));employees.push_back (employee ("Brian", 2));employees.push_back (employee ("Charles", 3));employees.push_back (employee ("David", 4));employees.push_back (employee ("Eric", 5));}unsigned input_id (std::string prompt){unsigned id = 0;while (1){std::cout

Related Questions

During the interview if you can't reach a conclusion with the employee as to the nature of the problem you should?

Choose a plan and implement it.


It's not necessary to implement safe and health program in the workplace ti reduce the likelihood of employee injury and added cost true or false?

It is not necessary to implement a safety and health program in the workplace, but it makes reducing employee injury easier. In addition, it could be essential in the event of a lawsuit.


How do you properly calculate and implement federal withholding in payroll processing?

To calculate and implement federal withholding in payroll processing, you need to use the employee's W-4 form to determine their filing status and allowances. Then, refer to the IRS withholding tables to find the appropriate amount to withhold based on the employee's wages and allowances. This amount is deducted from the employee's paycheck and sent to the IRS on their behalf. It's important to stay updated on any changes to tax laws and regulations to ensure accurate withholding.


What Local literature about employee attitude?

Local literature about employee attitudes may cover topics such as job satisfaction, motivation, organizational commitment, and employee engagement. It may investigate how these attitudes impact job performance, turnover, and overall organizational effectiveness. This literature often provides insights into strategies that organizations can implement to improve employee attitudes and foster a positive work environment.


What are reasons and benefits of implementation of payroll?

If you have people working for you that can be classified as employees by the IRS then you MUST implement payroll. You have no choice. The employer or the employee cannot choice whether someone is an employee or an independent contractor. There are strict rules that must be followed to determined a person's status.


Meaning of the employee induction programme?

First step towards gaining an employees' commitment, it is aimed at introducing the job and organization to the recruit and him or her to the organization. It involves orientation and training of the employee in the organizational culture, and showing how he or she is interconnected to (and interdependent on) everyone else in the organization. See also orientation.


What are the responsibilities you have with regards to enforcing both federal and DOD standards?

establish an abatement program, establish employee reporting procedures, implement additional safeguards and eliminate health risks


Do you have to pay inherit taxes on money willed to you in NC?

If you inherit money willed to you in the state of North Carolina, you must pay taxes on the money. Inheritance taxes are more than regular employee taxes.


What is scope of induction training?

What is induction training?Induction training is training given to new employees.The purpose of the induction period (which may be a few hours or a few days) is to help a new employee settle down quickly into the job by becoming familiar with the people, the surroundings, the job and the business.It is important to give a new employee a good impression on the first day of work. However, the induction programme should not end there.It is also important to have a systematic induction programme, spread out over several days, to cover all the ground in the shortest effective time.Devising an effective induction training programmeThe induction programme should be drawn up in consultation with all those involved. Depending on the size and complexity of the business this may include:• Senior management (including directors)• Supervisors or line managers• Personnel officers• Health and Safety managers• Employee or trade union representativesWhat induction training involvesUsually induction involves the new employee meeting and listening to different people talk about aspects of the business.Other methods include written information, audio visual aids and group discussion.The following items should be covered in an effective induction programme:• Introduction to the business/department and its personnel/management structure• Layout of the buildings (factory / offices)• Terms and conditions of employment (explaining the contract of employment)• Relevant personnel policies, such as training, promotion and health and safety• Business rules and procedures• Arrangements for employee involvement and communication• Welfare and employee benefits or facilities


When shall you use Multiple Inheritance?

Multiple inheritance is used when a new class to be formed has to inherit characteristics from two or more classes. eg: class scientist class labourer | | | | V V -------------------------------- | class employee | -------------------------------- Multilevel inheritance is used if a derived class inherits characteristics from a base class which is a derived class (intermmediate base class). If the inheritance level is more than two then it is a multilevel inheritance. eg: class Grandfather | | V class Father | | V class son


What strategies can be implemented to maintain a good employee turnover rate within the company?

To maintain a good employee turnover rate, companies can implement strategies such as offering competitive salaries and benefits, providing opportunities for career growth and development, fostering a positive work culture, promoting work-life balance, and conducting regular feedback and recognition for employees.


How to Measure the Motivation of Your Employee?

Measuring employee inspiration is often a tough panorama as motivation is a qualitative, rather than quantitative, value. In other words, it cannot be effortlessly measured with numbers or statistics. Unless the business is using targets and sales incentives often tough to estimate the motivation of employee with the use of surveys and questionnaires. To measure the motivation of employees it is important to implement a performance measure for the business, conduct a survey of your employees and conduct a survey of customer satisfaction.