Upload files to "/"

This commit is contained in:
2026-07-16 12:19:17 +02:00
commit 489ab30620
9 changed files with 259 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
namespace ObiektowaTeoria
{
/**
* Definicja klasy Samochod
* Zobacz w pliku Program.cs:8 jak używać tej klasy
*/
public class Samochod() {
// Pola klasy
public string Marka = "";
public int RokProdukcji;
public bool StanSilnika = false;
// Metoda klasy
public void UruchomSilnik() {
if (!StanSilnika) {
StanSilnika = true;
Console.WriteLine("Silnik uruchomiony.");
} else {
Console.WriteLine("Silnik jest już uruchomiony.");
}
}
}
}