All Questions
6 questions
2
votes
1
answer
129
views
Interface and inheritance; creating download types for a download manager
I'm creating a download manager in C# (in combination with Unity 2019.1.8, running the .NET 4.x equivalent (MONO) scripting back end). To accomplish this I decided to start using interfaces and class ...
3
votes
3
answers
5k
views
OOP modelling of a car agency
Exercise:
A car dealer wants a computer system to manage the data of their vehicles and classify them by type.
All cars have the following data
Engine serial number
Brand
Year
...
9
votes
1
answer
3k
views
OOP modeling of a boat rental system
I have some question about this exercise, did I model the problem correctly (the code works)?. If I did it correctly, Is there anything that can improve the code?. For example, how could I avoid the ...
2
votes
2
answers
97
views
Represent a person who has different roles for different offices
People have different types of roles depending on the office they are working at. For example, a person has two roles (cashier,cleaner) at OfficeMax and five roles(manager,security,etc) at OfficeLess. ...
3
votes
1
answer
2k
views
Classes representing items in an RPG game
I wrote a little program in C# that contains classes representing Items in RPG game. I wanted to have access to all inherited classes parameters from list contains parent Item class instances, so this ...
0
votes
2
answers
240
views
Very complicated Java HelloWorld app
This program attempts to shows the basic concepts of inheritance and polymorphism. In what ways could the code be modified to better demonstrate those concepts? The interface, abstract class and the ...