elektroniakieszkozok/elektronikaieszkozok/Telefon.cs

46 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-09-26 09:02:12 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elektronikaieszkozok
{
internal class Telefon : Eszkoz, IHalozatraCsatlakoztathato
{
public string oprendszer { get; set; }
public int kamerafelbontas { get; set; }
public Telefon(string nev,string marka, string allapot, string op, int kamera) : base(nev, marka, allapot)
{
this.oprendszer = op;
this.kamerafelbontas = kamera;
}
public void hivas()
{
2024-09-26 09:29:40 +00:00
Console.WriteLine($"{name} telefont hivat inditott");
2024-09-26 09:02:12 +00:00
}
public void uzenet()
{
2024-09-26 09:29:40 +00:00
Console.WriteLine($"uzenet elkuldve {name} telefonrol");
2024-09-26 09:02:12 +00:00
}
public override double energiafogyasztas(double uzemora)
{
throw new NotImplementedException();
}
public void csatlakoztatás(string hálózat)
{
Console.WriteLine($"csatlakoztatva: {hálózat}");
}
public void lecsatlakoztatás()
{
Console.WriteLine("lecsatlakoztatva a halozatrol");
}
}
}