In Previous version of C# we need to declare set accessor as private to make set accessor inaccessible. In our example we declare Email set accessor as private. We only assign value through constructor. When we will use Student class in other class and try to set Email value, it will throw error "The property or indexer 'Student.email' cannot be used in this context because the set accessor is inaccessible"