Explain how you would implement the same program in pascal

Assignment Help Computer Engineering
Reference no: EM131884535

Problem

Implement a C++ class employee that supports a virtual method print() which prints the name and age of an employee object. Next derive a class manager which supplies its own print() method which, in addition to the employee information, prints the group number for which the manager is responsible (this is an additional field of manager). Also derive another class from employee called part time. The part time class also supplies its own print() which prints how many hours a week the employee works.

- Can you use the print of employee in manager?

- Explain how you would implement the same program in Pascal.

- Compare the object-oriented and the procedual solution in terms of maintainability. What changes are necessary in the two solutions if we need to add a new type of employee?

- In the C++ solution, how would you implement a part time manager? Does your solution allow you to implement this new class using multiple inheritance?

Reference no: EM131884535

Questions Cloud

Prepare the journal entries under the equity method : Prepare the journal entries under the equity method of accounting for C Ltd for the years ending 30th June 2010 and 30th June 2011 to account.
Define class automobile and use window as a member of class : define the class automobile and use window as a member of the class. Explain the proper use of inheritance in terms of the is-a relation.
Write up the loan account and interest expense account : On 1st January 2008 Barrel took out a $15000 loan. The loan was repayable in eight installments of $2100 commencing on 1stApril 2008 and finishing.
Describe enterprise organization levels : Describe enterprise organization levels as seen from a financial accounting perspective.
Explain how you would implement the same program in pascal : Explain how you would implement the same program in Pascal. Compare the object-oriented and the procedual solution in terms of maintainability.
Computing the cost of the merchandise sold : Beginning inventory, purchases, and sales for Product XCX are as follows: Sep. 1 Beginning Inventory 22 units @ $12 5 Sale 15 units 17 Purchase 22 units.
What will be the total amount in given time : If $2, 100 is invested now, $2, 300 two years from now, and $3,000 five years from now at an interest rate of 5% compounded annually.
Hedge against a rise in price of jet fuel using crude oil : How much money will they make on the contract if they are correct in their prediction?
What are the binding policies adopted by the language : Write a short paper on C macros, comparing them with routines. What are the binding policies adopted by the language?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd