C# TA ABSTRACT CLASS VE MİRAS ÖRNEĞİ

Bu Yazımda Sizlere Daha Öncede anlattığım Fakat Fazla vaktim olmadığından az örnekle sunduğum C# ta Abstract Metotlar ve onların Gerçeklenmesi hakkındadır kodları Visual studio 2008 derleyicisine koyup çalıştırın daha iyi anlayacaksınız umarım ama yinede her önemki kodun altında açıklama satırıyla ne yapılmaya çalışılmış belirttim. sorularınız olursa Cevaplamaktan mutluluk duyarım.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
// Abstract Class Oluşturuyoz
abstract class mehmet
{
// Abstract Olmayan Bir Metod Tanımlıyoz
public int toplama(int i, int j)
{
return i + j;
}

//Abstract Bir Metod Tanımladık
//Fakat Bu Metod Miras Alan kısımda İplemente edilmeli
public abstract int carpma(int x, int y);
}

//Miras Alan Class
class deveci : mehmet
{
// Override Anahtar Kelimesi Kullanılarak Abstract Metod İplemente Edilir
public override int carpma(int a, int b)
{
return a * b;
}
}

class Program
{
static void Main(string[] args)
{
Console.WriteLine(“MEHMET SALİH DEVECİ–15.08.2010”);
deveci hesapla = new deveci();
int toplam = hesapla.toplama(10, 20);
int carpimlar = hesapla.carpma(10, 20);
Console.WriteLine(“toplam : {0},carpimlar : {1}”, toplam, carpimlar);
Console.ReadLine();
}
}
}

İşte Kodun Çıktısı:

 

Oracle Exadata SQL Server Goldengate Weblogic EBS ve Linux konusunda aşağıdaki konularda 7×24 Uzman Danışmanlara yada Eğitimlere mi
İhtiyacınız var [email protected] adresine mail atarak Bizimle iletişime geçebilirsiniz.

– Oracle Veritabanı Danışmanlığı
– Oracle Veritabanı Bakım ve Destek
– Exadata Danışmanlığı
– Exadata Bakım ve Destek
– SQL Server Veritabanı Danışmanlığı
– SQL Server Veritabanı Bakım ve Destek
– Goldengate Danışmanlığı
– Goldengate Bakım ve Destek
– Linux Danışmanlığı
– Linux Bakım ve Destek
– Oracle EBS Danışmanlığı
– Oracle EBS Bakım ve Destek
– Weblogic Danışmanlığı
– Weblogic Bakım ve Destek
– Oracle Veritabanı Eğitimleri
– Oracle VM Server Danışmanlığı
– Oracle VM Server Bakım ve Destek
– Oracle EPPM Danışmanlığı
– Oracle EPPM Bakım ve Destek
– Oracle Primavera Danışmanlığı
– Oracle Primavera Bakım ve Destek
– Oracle Eğitimleri
– SQL Server Eğitimleri
– Goldengate Eğitimleri
– Exadata Eğitimleri
– Linux Eğitimleri
– Oracle EBS Eğitimleri
– Oracle VM Server Eğitimleri
– Weblogic Eğitimleri
– Oracle EPPM Eğitimleri
– Oracle Primavera Eğitimleri

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

2 comments

  1. I discovered your weblog site on google and examine just a few of your early posts. Continue to keep up the very good operate. I just extra up your RSS feed to my MSN Information Reader. In search of ahead to reading more from you later on!…

  2. Pretty great post. I just stumbled upon your blog and wanted to say that I’ve truly loved surfing around your blog posts. In any case I’ll be subscribing on your rss feed and I’m hoping you write once more soon!

Leave a Reply

Your email address will not be published. Required fields are marked *