mardi 17 décembre 2019

C# Classes/Design

I am working on Creating a new class to process a new type of Customer "NOU".

I am wrestling with the idea of creating a single class which has the following methods. GetTheCustomerCode GetTheWareHouseAddress GetTheStoreAddress

OR Should I create separate Classes with one method each as per the "Single Responsibility Principle" eg.

Class NUOCustCode with the method GetCustCode or should the method be Get ? Class NUOWareHouseAddress with the method GetWareHouseAddress Class NUOGetStoreAddress with the mehod GetSoreAddress

Also What is the best naming Convention to use ?

Aucun commentaire:

Enregistrer un commentaire