- Home /
Question by
DaiMangouDev · May 08, 2015 at 09:25 PM ·
c#programming
What type of field can store any type of class c#
if we have 4 different classes
Public class Life(){}
Public class Leaves(){}
Public class Cheats(){}
Public class Attack(){}
public /*some field*/ classType;
what should we place at "come field" in order for any one of the four classes to be able to be stored in it ?
Comment
Best Answer
Answer by YoungDeveloper · May 08, 2015 at 09:54 PM
System.Object
yes, i totally forgot about it even though i have used it so many times. thanks a lot for the answer
Your answer
![](https://koobas.hobune.stream/wayback/20220613195134im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
In the need of the light of a genius ! 2 Answers
[C#] AI Behaviour in spherical way like RESOGUN based on Rigidbodies. 1 Answer
Procedural floor plan/room layout (2D) 0 Answers