Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

better software design

$
0
0

I wanted to create two classes one for customer and one for repair shop.

At first I created a class customer.  that includes customer information.

Then I created another class which has employee data  and it has the same properties as for customer.

But I realized that they both might have different members later on but for now I can see both of them are person.  I just stop here and started to think what how should I design my these two classes to achive polymorphism.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>