NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


/*////////////////////////////////////////Abstract//////////////////////////////////////////////////
//abstract sınıflar bir sınıf olmakla beraber kendine has,normal
//sınıflardan ayrılan birkaç özlliğe sahiptir.abstract class varsa orada kalıtım vardır.
//Bir base class ta var olan metod ya da propertynin derived classta ihtiyaca göre
//değiştirilmesi gerekiyor ise abstract classlar kullanılır virtual ve overrridan ayrılan
//noktası ezme işini zorunlu kılmasıdır.
//override zorunlu
abstract class A
{
abstract public void X();
//gövdesi olmaz.
//kalıtım alan sınıta mutlaka tekrar yazılmalı
//abstract lar private olamaz.
//abstract metod abstract sınfın içinde tanımlanır.
//abstract clasların içinde abstract olamayan metodlarda tanımlanabılır.
// public int Y { get; set; }
//abstract classlardan nesne üretilmez.Cok sekililikle kullanılabilir
//A a = new B(); seklinde
abstract public int Y { get; set; }

}
class B:A// a yı secip ctrl nokta implement eder.Metodları otomatik olusturur.
{
public override void X()
{
//Komutlarr
}
public override int Y { get; set; }
}*/
//*******************************************************************************************************************
/* interface
* abstract class ile benzerliği icerisinde property metod gibi eleamnların imzasını bulundurp kalıtım
alan derived class ta implament etmek zorundaydık.
* interface içerisinde sadece imzalar bulunur.farklı metodlar tanımlayamayız.
* interface söz konusuysa kalıtım olmak zorundadır.
* Nesne olusturulamaz.Referans noktası alınıp çok sekillik ile erişim sağlayabiliriz.
* public yazılmaz tipi ve adı kullanılarak yazılır gövdesi olmaz


interface IArayuz// ismin basında I kullanılması arayuz oldugunu belirtir.Herhangi yerde ve kişilerce interface oldugunun anlaşılmasını kolaylaştırır.
{
void Metod1();
}
class C:IArayuz
{
void IArayuz.Metod1()
{

}

}*/
//************************************************************************************************************************
//GENERİC
/* class A<T,S>//T yerine herhangi bişeyde yaızlabilir.İçinde birden çok tip te tanımlanabilir.Örn : <T,G,N,B>
{
T t;
S s;
public void X()
{
t.
}
}
class B
{
public int Y { get; set; }

}*/
//class MyClass<T> where T : A
//class MyClass<T> where T : class //sınıflara güven
// class MyClass<T> where T : new()// üretebilirsin güvenerek üretebilirsin.
/* class MyClass<T> where T : A, new()
{
T t;
public void X()
{
//t.X();
T t1 = new T();

}
}
class A
{
public int X { get; set; }

}
class B : A
{
public void Y()
{
}
}
class C : B
{
public void Z()
{
}
}
class D:C
{
public void W()
{
}
}
class Program
{
static void Main(string[] args)// kc ku // ekler kaldırır.
{
// A<B,SqlConnection> a = new A<B,SqlConnection>();// T nin içinde artık B nesnesi var.
MyClass<A> a = new MyClass<A>();
MyClass<B> b = new MyClass<B>();
MyClass<C> c = new MyClass<C>();
//MyClass<D> d = new MyClass<D>(); D adan kalıtım almadıgı için tanımlayamayız.
MyClass<D> d = new MyClass<D>();//class MyClass<T> where T : class //sınıflara güven class oldugunda.


}
}*/
class Program
{
static void Main(string[] args)// kc ku // ekler kaldırır.
{
#region Concat
string a = "fsdfs";
string b = "sdfs";
string c = string.Concat(a, b);//stringleri toplar.
Console.WriteLine(c);//fsdfssdfs çıktı

#endregion

#region Compare

#endregion

#region StartWhit

#endregion

#region EndsWhit

#endregion

#region MyRegion

#endregion


}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.