C # implementation of the approach
using System ; class GFG { public class Student { public string name ; public int marks , prev_rank ; public Student ( ) { this . marks = 0 ; this . prev_rank = 0 ; } }