LeviCoding
I don't know how to structure my program...
So we have to write a program about shipping companies containing fleets and fleets containing different kind of ships. I already made a IshipRepository in the domainlayer and a ShipRepository in the databaselayer. But now is my question we also have to keep a list of shipping companies and fleet. Do I make a repository for each of them or not? If I use one repository for all of them how ould it look like? We are not using databases yet but storing the objects in lists
18 replies
Fast search an object in a list using his attribute
So I have a list of ships and each ship has a length width, mass and a name. We need to write a method that searches in this list the oobject using his name attribute. So only a string is given with the method. for example public Ship SearchShip(string shipName){}
8 replies
❔ I'm stuck with Polymorfism
So In my program we have a class Persoon and a class student and class leerkracht. a student and leerkracht is a persoon. I need to keep a list of personen and leerkrachten. I can implement student but not leerkracht. Can someone help. If you see code you will understad
14 replies