السلام عليكم ورحمه الله وبركاته
عندي سؤال في ال سي++ ومحتاجه مساعدتكم والي عنده خبرة ممكن يساعدني وهو عباره عن سيناريو ومن هالسيناريو نعمل البروجرام والمتطلبات وهذا هو السؤال:
Design, implement, test and document a multi-class system in C++.
Use advanced features of object oriented programming appropriately, including inheritance, polymorphism, operator overloading
Scenario: “ABC Bank has two types of bank accounts for its customers, Savings_Account and Current_Account.”
يعني اهني البنك هو الparent class,
واSavings_Account and Current_Account
هما الchiled class
بس مو عارفه كيف اسوي البروجرام ساعدوني لوممكن
Questions
Task #1: You are required to create class hierarchy (parent and child classes) for the above scenario with the following member variables
account_number, customer_name, current_balance
The class hierarchy should include the following member functions
Debit(amt) : to decrease the balance with amt if current
balance is greater than amt
Credit(amt) : to increase the balance with amt
Display() : to display object details like customer_name etc.
Write Appropriate constructors in parent and child classes to initialize the values.
Overload +operator to Credit and –operator to Debit
Override the Credit() and Debit() methods in child class
Overload the methods wherever appropriate.
Deliverables:
A Report inclusive of the following:
Class hierarchy design (Parent and child classes)
Members in the respective classes
Implementation of the methods, constructors, operator overloaded methods.
Justification on the choice of class hierarchy design, access specifiers, overriding, overloading etc.
Task2:
Implement the above designed classes using objects in main() method to test their functionality.
Deliverables:
Software implementation of class hierarchy with evidence of testing
الي عنده خبرة وييقدر يساعدني بكون شاكرة ليه وجزاكم الله خير
ساعدوني بليييز
ه
25-11-2007 | 09:36 AM