Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace World1a
- {
- class Student : Person
- {
- public int FNumber { get; set; }
- // protected string name;
- // public static string nationality = "Bulgarian";
- public Student(string name, int age, int fNumber)
- :base(name, age)
- {
- FNumber = fNumber;
- }
- public override void IntroduceYourSelf()
- {
- // Console.WriteLine("My name is {0}. I am {1} years old! My balne is {2}. My nationality is {3}. FNumber = {4}", name, age, Balance, nationality, FNumber);
- Console.WriteLine("-------------------------");
- base.IntroduceYourSelf();
- Console.WriteLine("FNumber = {0}", FNumber);
- Console.WriteLine("-------------------------");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement