For example, I have a class called Clothing that inherits from the abstract Product class.
public class Clothing : Product
{
public bool IsInSeason {get; set;}
public string Material {get; set; }
public Decimal IsFeatured { get; set; }
}
Edit:
In a function, how could I pass the string βClothesβ and have the type of the return class?
ReturnTypeOfClassBasedOffOfString(string class)
{
}
source
share