using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atsisk4
{
class Mokykla
{
public int klasesSkaicius;
public string klasesRaide;
public int mokiniuSkaicius;
public int pradziosMetai;
public Mokykla(int klasesSkaicius, string klasesRaide, int mokiniuSkaicius, int pradziosMetai)
{
this.klasesSkaicius = klasesSkaicius;
this.klasesRaide = klasesRaide;
this.mokiniuSkaicius = mokiniuSkaicius;
this.pradziosMetai = pradziosMetai;
}
public int KiekMetuMokosi()
{
int metuMokosi = DateTime.Today.Year - pradziosMetai;
return metuMokosi;
}
}
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)
{
/*
this.
this.
*/
}
}
class Program
{
static void Main(string[] args)
{
Klase klase = new Klase(new List<string>() { },
new double[20], 12, "c", 8, 2007);
Console.WriteLine("Mokosi " + klase.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.