Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Student
- {
- string name;
- string subject;
- int ocena;
- public string getName()
- {
- Console.Write("Give my your name, please\t");
- name = Console.ReadLine();
- return name;
- }
- public string getSubject()
- {
- Console.Write("Which subject do you prefer?\t");
- subject = Console.ReadLine();
- return subject;
- }
- public string wystawOcene()
- {
- Console.Write("Ocenan z egzaminu:\t");
- ocena = Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement