International Staffing
Autor: maryam64 • October 28, 2015 • Course Note • 2,742 Words (11 Pages) • 844 Views
Introduction:
The aim of this assignment is to be familiar with object-oriented programming concepts and apply them to the modeling of real world systems. Object-oriented is able to developed and derived new class structures and organize them such that they will model real world systems within computers. We developed a retail shop application to manage the customer orders placed by its various customers. We simulates a simple retail order management system which involves the real world objects namely customers, orders and products.
In this application, the users are able to add customers and products. The developed system also allows the customer to place orders. Each order has many items, which are the products available in the retail shop.
The developed system has the menu driven with options for adding customers, products and orders with multiple items. Menu is repeated until the user opts to exit the system.
Object orientation is a technique that we solve the problem of programming in the form of objects and interactions as there is in the real life. This document reflects the design of the implementation codes and the implementation details that utilizes the Object-oriented programming concepts. The programming language for the order management system will be written in C++ using Microsoft Visual Studio.
Encapsulation:
Encapsulation is happened when all the characteristics of an object in the object itself are enclosed. Information hiding and encapsulation are related concepts. Behavior and data are added in an object.
In this system: product, customer, order and orderItem have their personal information and their behavior that also behaviors implemented in each class. So we can say that attributes and behavior of each class motioned are encapsulated in the related class.
Project Description
Certain modules is used in this project that these modules are described as below in order to getting the better understanding of the project. We created four classes (customer, factors, order and product) that each class includes the necessary methods required to make the classes fully functional. There is one main class to be called retail.cpp to include main method for running the program.
2.1. Customer class
It is one of the important modules of the retail order management system. Each retail order management system has the customers to place orders. We wrote the necessary methods required in this class to make the customer class fully functional.
- Our software will allow the adding various attributes needed for describing the customer entity as no duplication of customers allowed. The following details of each customer can be included in the method add () from class customer:
void customer::add()
✓ Customer Identification Number
✓ Customer Name
✓ Customer Address
✓ Customer Contact Number
- Our software will allow the describing all of information added from customer.
void customer::display(){
cout<<"customer_Name"<<'\n'<<'\n';
cout<<"customer Identification_Number"<<'\t';
cout<<"Customer Address"<<'\t';
...