top of page
Search
  • leahernandez9

Media Nav Carte Europe Dacia Full Version With Torrent







4.5 out of 5 stars 67. Media Nav Carte Europe Dacia Full Version With Torrent Media Nav Carte Europe Dacia Full Version With Torrent Media Nav Carte Europe Dacia Full Version With Torrent Download Dacia Media Nav Carte Europe Dacia Full Version With Torrent For FreeQ: Is it possible to implement a system of dependant classes? I am writing a set of classes that have the same methods but with some differences. For example: [Customer] has [GetCustomerInfo(string Name, string Email)]; [Store] has [GetStoreInfo(string Name, string Zipcode, string Website)]; [Item] has [GetItemInfo(string Name, string Date, int Id, int Price)]; I'd like to be able to have a [Customer], but this customer should have a [Store]. Is there any way to implement this? A: There are a few ways of doing this in an OO way. You could extend the "base" class to provide the additional fields/methods: [Store] public class StoreCustomer : Customer { public StoreStore Store { get; set; } public StoreCustomer(StoreStore store) : base(name, email, store) { Store = store; } public void GetItemInfo(string Name, string Date, int Id, int Price) { // your logic here } } Alternatively, if you have the constructor of Customer as a template you could just inject an instance of Store into Customer: public class Customer { public Customer(string name, string email, StoreStore store) { // your logic here } public void GetItemInfo(string Name, string Date, int Id, int Price) { // your logic here } } Or, if you want to use the first example, you could make Store a property of Customer: [Store] public class Customer { public Customer(string name, string email, StoreStore store) ac619d1d87


Related links:

7 views0 comments

Recent Posts

See All
bottom of page