using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atsisk2
{
class Mokykla
{
public int klasesSkaicius;
public string klasesRaide;
public int mokiniuSkaicius;
public int pradziosMetai;
public int KiekMetuMokosi()
{
int metuMokosi = DateTime.Today.Year - pradziosMetai;
return metuMokosi;
}
public Mokykla(int klasesSkaicius, string klasesRaide, int mokiniuSkaicius, int pradziosMetai)
{
this.klasesSkaicius = klasesSkaicius;
this.klasesRaide = klasesRaide;
this.mokiniuSkaicius = mokiniuSkaicius;
this.pradziosMetai = pradziosMetai;
}
}
class Klase:Mokykla
{
public List<string> vardai;
public int[] vidurkiai;
public Klase(List<string> vardai, double[] vidurkiai,
int klasesSkaicius, string klasesRaide, int mokiniuSkaicius, int pradziosMetai):base
(klasesSkaicius, klasesRaide, mokiniuSkaicius, pradziosMetai)
{
}
}
class Program
{
static void Main(string[] args)
{
List<string> vardai = new List<string>();
for (int i = 0; i < length; i++)
{
}
Klase klase = new Klase(new List<string>() { },
new double[20], 11, "a", 20, 2008);
Mokykla mokykla = new Mokykla(12, "c", 22, 2007);
Console.WriteLine("Mokosi "+mokykla.KiekMetuMokosi()+" metu");
Console.ReadKey();
}
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.