TCS interview question

Basic c# and oops question