Newbie C# programmer here.
I have a base class A which has a method for id. Now I have class B which inheirits from B and has a method for expiry date. Finally I have class C which inheirits from B and has a method for printing names.
If I were to instantiate each one of these types of classes and put them into an array list. How do I search for an object based on id? Or how would I search based on expiry date?
I have a base class A which has a method for id. Now I have class B which inheirits from B and has a method for expiry date. Finally I have class C which inheirits from B and has a method for printing names.
If I were to instantiate each one of these types of classes and put them into an array list. How do I search for an object based on id? Or how would I search based on expiry date?