{"id":2490,"date":"2024-11-26T11:40:53","date_gmt":"2024-11-26T08:40:53","guid":{"rendered":"https:\/\/www.aydiner.gen.tr\/?p=2490"},"modified":"2024-11-26T11:40:53","modified_gmt":"2024-11-26T08:40:53","slug":"sinif-tanimlama-ve-turetme","status":"publish","type":"post","link":"https:\/\/www.aydiner.gen.tr\/index.php\/2024\/11\/26\/sinif-tanimlama-ve-turetme\/","title":{"rendered":"S\u0131n\u0131f Tan\u0131mlama ve T\u00fcretme"},"content":{"rendered":"<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n private void button1_Click(object sender, EventArgs e)\r\n        {\r\n            ogrenci ogr1 = new ogrenci(); \/*ogr1 isminde Nesne t\u00fcrettik*\/\r\n            ogr1.Ad = &quot;Merve&quot;;\r\n            ogr1.Soyad = &quot;B\u00dcT\u00dcN&quot;;\r\n            ogr1.Yasi = 21;\r\n            ogr1.Bolumu = &quot;Bili\u015fim Teknolojileri&quot;;\r\n\r\n            \/*yazd\u0131rma i\u015flemi yap\u0131ld\u0131.*\/\r\n\r\n            ogrenci ogr2 = new ogrenci();\r\n            ogr2.Ad = &quot;Ali&quot;;\r\n            ogr2.Soyad = &quot;KORKMAZ&quot;;\r\n            ogr2.Yasi = 22;\r\n            ogr2.Bolumu = &quot;Bili\u015fim Teknolojileri&quot;;\r\n\r\n           \r\n\r\n            ogr1.Ad = ogr2.Ad; \/*ogr2 nin sadece ad\u0131n\u0131 al ve ogr1 e ver *\/\r\n            ogr1 = ogr2; \/*ogr2 nin t\u00fcm \u00f6zelliklerini ogr1 e  ver*\/\r\n\r\n            textBox1.Text = ogr1.Ad.ToString();\r\n        }\r\n    }\r\n    class ogrenci     \/*ogrenci ad\u0131nda bir s\u0131n\u0131f tan\u0131mlad\u0131k.*\/\r\n    {\r\n        public string Ad; \/*public Her yerden ula\u015fmak i\u00e7in, bir \u015fey yazmazsak private oluyor*\/\r\n        public string Soyad;\r\n        public int Yasi;\r\n        public string Bolumu;\r\n\r\n    }\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>private void button1_Click(object sender, EventArgs e) { ogrenci ogr1 = new ogrenci(); \/*ogr1 isminde Nesne t\u00fcrettik*\/ ogr1.Ad = &quot;Merve&quot;; ogr1.Soyad [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2233,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[232],"class_list":["post-2490","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programlama","tag-sinif-tanimlama-ve-turetme"],"_links":{"self":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/2490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/comments?post=2490"}],"version-history":[{"count":1,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/2490\/revisions"}],"predecessor-version":[{"id":2491,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/2490\/revisions\/2491"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media\/2233"}],"wp:attachment":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media?parent=2490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/categories?post=2490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/tags?post=2490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}