using System;public class MyClass { public virtual void MethodA(T arg) where T : new() { }}public class YClass : MyClass { public override void MethodA(T arg) { T obj = new T(); }}