static void Main(string[] args) { UnaryOperator opr = new UnaryOperator(20, 30); opr = +opr; // Add this statement opr.showdata(); Console.ReadLine(); }