Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace business_project
- {
- //temat 1 zadanie 1,2
- public class Person
- {
- public int Id { get; set; }
- public string FirstName { get; set; }
- public string LastName { get; set; }
- public int Age { get; set; }
- }
- public class Employee : Person
- {
- public int Id { get; set; }
- public string FirstName { get; set; }
- public string LastName { get; set; }
- public int Age { get; set; }
- public double salary { get; set; }
- public string JobTitle { get; set; }
- }
- public class Operation
- {
- static string HolidayBonus {get; set;}
- }
- //temat1/zadanie5
- // public void PrintInfo()
- // {
- // Console.WriteLine($"Id: {Id}\nFirst name: {FirstName}\nLast name: {LastName}\nAge: {Age}");
- // }
- //temat1/zadanie5
- //public void ChangeInfo(string firstName, string lastName, int age)
- // {
- // firstName = firstName;
- // lastName = lastName;
- // age = age;
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement