Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8018755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:12:14+00:00 2026-06-04T21:12:14+00:00

I’m searching some help for ideas for a bank system. This thing is for

  • 0

I’m searching some help for ideas for a bank system.

This thing is for the University, and teacher put some annoying restrictions such as:

  • Make the program in Console, C#.
  • Use the Object-Oriented basis (classes, inheritance, encapsulation and polymorphism)
  • Don’t use something that hasn’t been covered in the classroom. The things covered this far are cycles, conditions, arrays (only simple ones), classes, inheritance, encapsulation, classes objects, polymorphism, methods, constructors. Things like lists, properties (Get, Set), foreach loops, work-less functions, and so on are NOT allowed.

With all those eemm, let’s leave them ‘annoying’ restrictions, I need to accomplish this:

A bank system that simulates it’s users accounts, with capabilities of retire and deposit money for each user. It MUST be done with the following five classes, with these respective fields:

Class PersonalData:

    string userCode;
    string userIdentification;
    string INSSNumber;
    string userName;
    string userLastName;
    int    age;
    string address;
    string phone;

Class Account:

    string accountNumber;
    string accountType;
    string accountOpenDate;

Class Deposit:

 string dateDeposit;
 double depositTotal;
 double interest;

Class Retire:

 string dateRetire;
 double retireTotal;
 double interest;

Class FinancieryState

 double interest;
 double accountTotal;

Inheritance MUST be applied to EVERY class. If a class isn’t using inheritance, it will NOT be valid.

Retire and Deposit class has two interest calculation methods, one to know the total interest of all deposits (or retires), and another that will call to the FincieryState class and grow up its interest field. This must be done using polymorphism.

Okay, basically those are all the requirements, may be I’m missing a couple ones, as fast as I remember them I’ll write them.

What I’ve done so far:

Make to PersonalData the ‘Super Parent’ class.
Account inherits from PersonalData.
FinancieryState inherits from Account.
Deposit inherits from FinancieryState.
Retire inheits from FinancieryState.

Fill-up to every class with their respective methods and constructors to fill-up fields and update/calculate the numeric ones.

A Main entry for menus such as deposit for a specific client, view state of a client’s account, etc.

Now, I must store all the data of a new user in a single object of whatever type.

Finally, the question:

What can I do to have in a single object to the user, and be able to view its deposit and retire information, apply the polymorphism part to these two classes, and be able to calculate the accountTotal field of the FinancieryState class with the help of the information given by the deposit and retire classes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:12:15+00:00Added an answer on June 4, 2026 at 9:12 pm

    Got this working. A casting was enough.

    I’ve changed the inheritance squence to be this:

    Make to PersonalData the ‘Super Parent’ class. Account inherits from PersonalData. FinancieryState inherits from Account. Deposit inherits from FinancieryState. Retire inheits from Deposit.

    Then, the data is stored in a Retire object, to get retire info it’s enough to do a myObject.GetRetireTotal().

    If its for the deposit info it would change to ((Deposit)myObject).GetDepositTotal().

    And so on…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.