r/shittyprogramming • • Nov 02 '18

Java banking system project

Hello everyone, I’m working on a java banking system project and i was wondering what are the possible classes i could use. Note: I’m restricted to 6 classes including inheritance. Thanks

70 Upvotes

24 comments sorted by

View all comments

Show parent comment

24

u/maxximillian Nov 02 '18

Use inheritance, are you kidding? Inheritance tax is through the roof. Best bet is to initialize the sub classes with a pointer to the banking object in memory.