Skip to main content

RRS - Module 2

You have identified the objects and their members in the previous module. In this module, let us start the project by first creating the two main important objects – User and Admin
Steps to be followed in this module:
  1. Create a base class called Person, by identifying the common attributes of user and admin
  2. Create 2 derived classes called, User and Admin, for the above given base class
  3. Write the code for the Interface Menu.
      1. Initialize the system by creating an object for Admin class
      2. Save the Admin object in a file
      3. Create two interfaces where one is for Admin and the other is for User
      4. Login as the Admin and do the following
        1. Add new users
        2. Save the objects to the file
        3. Display the User Details. To achieve this read the details from the file sequentially as objects and display the details in a tabular format.
      5. Logout from Admin Interface and login to the User Interface. Do the following:
        1. Display his own details
        2. User should be able to change his own details.

Comments

Popular posts from this blog

Mini Project - Railway Reservation System

Module 1 Overview Railway Reservation System-(RRS) Project is developed to help students learn and realize capability of C programming language, and appreciate procedural approach of developing a system. RRS helps users reserve/cancel berths, search for trains, check reservation/cancellation history, etc... On the other hand it helps the railway reservation officers to prepare reservation charts, organize train schedules, etc... RRS provides two types of log-ins one is the User log-in for railway customers and the other one is Admin log-in for railway reservation officers. Project is divided into 10 modules of four hours duration each. All the modules will give exactly what to develop in the 4 hour time frame. Since most of the modules are inter-related it is important to keep track of the previous code. After submission it is allowed to make changes in the previous code to suit / integrate well to the system. Before we start the project, we need to make the followin...

Inheritance

Week 1 - M5 : Inheritance Learning Objectives At the end of this module, you will be able to Understand the implementation of inheritance in C++ Override the base class members Access overridden base class members using the scope resolution operator Understand the concept of base class initialization Introduction Inheritance The philosophy behind inheritance is to portray things as they exist in the real world. As inheritance is found in real world, it is important feature of OO programming. Inheritance has many advantages, the most important of them being the resuability of code. Once a class is defined and debugged, it can be used to create new subclasses. The reuse of existing class saves time and effort. The Class from which another class is derived is called the base class . The class which inherits the properties of the base class is called the derived class . Each instance of the derived class includes all the members of the base class. Since...