|
@@ -0,0 +1,63 @@
|
|
|
|
+using System;
|
|
|
|
+using System.Collections.Generic;
|
|
|
|
+using System.Linq;
|
|
|
|
+using System.Text;
|
|
|
|
+using System.Threading.Tasks;
|
|
|
|
+
|
|
|
|
+namespace re
|
|
|
|
+{
|
|
|
|
+ interface Data
|
|
|
|
+ {
|
|
|
|
+ void Particl();
|
|
|
|
+ string Ovo(string name);
|
|
|
|
+ int Saaaa(int g, int f);
|
|
|
|
+ }
|
|
|
|
+ internal class Time : Data
|
|
|
|
+ {
|
|
|
|
+ protected string type;
|
|
|
|
+ public virtual string Ovo(string name)
|
|
|
|
+ {
|
|
|
|
+ return type;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void Particl()
|
|
|
|
+ {
|
|
|
|
+ Console.Write("Твое имя: ");
|
|
|
|
+ type = Console.ReadLine();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public int Saaaa(int g, int f)
|
|
|
|
+ {
|
|
|
|
+ if (g < f)
|
|
|
|
+ { Console.WriteLine("Что-то"); }
|
|
|
|
+ else Console.WriteLine("Ого");
|
|
|
|
+ return g;
|
|
|
|
+ }
|
|
|
|
+ internal class Diplo : Time
|
|
|
|
+ {
|
|
|
|
+ string nnn;
|
|
|
|
+ new public string Ovo()//переопределили
|
|
|
|
+ {
|
|
|
|
+ nnn = "В";
|
|
|
|
+ return nnn;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ public int Saaaa(int g,int f)
|
|
|
|
+ {
|
|
|
|
+ return f*3;
|
|
|
|
+ }
|
|
|
|
+ public void Rar()
|
|
|
|
+ {
|
|
|
|
+ Console.WriteLine("Твой оклад");
|
|
|
|
+ int oklad = Convert.ToInt32(Console.ReadLine());
|
|
|
|
+ Console.WriteLine("Сколько ты работал");
|
|
|
|
+ int dni = Convert.ToInt32(Console.ReadLine());
|
|
|
|
+ double kpd = (oklad*dni)/ 21;
|
|
|
|
+ Console.WriteLine($"Твой оклад за отработанное время {kpd}%");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|