-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kalıtım.cs
35 lines (30 loc) · 917 Bytes
/
Kalıtım.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorldCS
{
class Program
{
static void Main(string[] args)
{
PapaganClass p = new PapaganClass();
p.tur = "Papağan";
p.hiz = 50;
p.isim = "Sultan";
p.renk = "Sarı-Pempe";
p.ses = "cikcok";
p.agırlik = 1300;
Console.WriteLine("İsim: " + p.isim);
Console.WriteLine("Hiz: " + p.hiz);
Console.WriteLine("Tür: " + p.tur);
Console.WriteLine("Renk: " + p.renk);
Console.WriteLine("Ses: " + p.ses);
Console.WriteLine("Ağırlık: " + p.agırlik);
Console.ReadLine();
}
}
}