Search⌘ K

Challenge 2: Implement the Complete Student Class

Explore how to properly implement a Student class by declaring private fields and defining properties for encapsulation. This lesson helps you understand and apply data hiding principles in C# by designing and coding the class step-by-step to reinforce OOP practices.

We'll cover the following...

Problem Statement

You are given a Student class in the editor. Your task is to declare two fields:

  • string _name
  • string
...