NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

1.Hafta

Encapsulation = Bir fieldın get ve set bloklarıyla proporties'e dönüştürülmesidir.

Access Modifier= private, public ,protected, internal, protected internal.
protected = class instinsı alınırsa erişilemez, mirasta erişilebilir
internal = heryerrden erişilebilir
protected internal =

Class:
public ve internal access modifer alırlar
default: internal

Constructor Metod

*
Bir classın instinsı alındığında, içinde yer alan fieldlara ilk değer ataması yapılmaası için kullanılır.
*
Geri dönüş değeri yoktur
*
Class ismiyle aynı olmak zorundadır.
*
field = değişken
*
proportie ?
*
her classın bir constructor metodu vardır.otomatik olarak oluşturur
*
overload edilebilir.
*
protected internal, internal ve public access modiferları alır.
*




2.Hafta

Bir classın örneğini almak new keywordunu kullanmakla olmaz.

DESIGN PATTERN : OOP karşımıza çıkacak problemlerin çözüm yoluna ulaştırmışlardır.
CREATİONAL PATTERNS

*
SINGLETON : BİR UYGULAMA İÇİERİSİNDE TEK BİR İNSTINSININ OLMASI GEREKİR
*
FAÇADE : Veri tabanında kullanılır



Inheritance iki başlık altında işlenir

*
Class to class
*
İnterface Implementation


c# tüm herşey Object 'den miras alır

Deriverd (türetilmiş classlar) - Base ( )
--içerisinde parametre alan bir cons varsa derived içine bir constr aynı tipte parametre ve base keywordü ile gönderilmelidir.
Bir class sadece bir kere İnheritance alabilir ( miras alabilir)

enum = kendi tipimizi oluşturuyoruz
decimal m
floaf f

Polymorpism ( çok biçimlilik)
Base classının diğer metotlar içersinde yapısı değişlmemesi koşuluğu ile çalıştıktan sonraki neticenin farklı olmasıdır.

3.Hafta



4.Hafta

İnterface:
-multi inheritance çoklu miras için çıkmış
-Field içeremez
-Hiçbir üyenin access modifier'ı olmaz.
sadece metodların içi yer alır
-metodun başında access modifier olmaz

Kullanımı:
interface IUser{
int Id {get; set;}
string Name {get;set;}
string LastName {get;set;}
vıid Display();
}

5.Hafta

Generic: her tipten değişken alabilir
-Class ve List tipinden tanımlanabilir.

ArrayList =içerisine object türden değer alır, içerisindeki değerleri dönerken dikkat etmeliyiz. çünkü her tipten değişken alabilir.

IEnumarble = bir interfacedir , classlara collection özelliği tanımlamamıza yarar.

struct= classlara çok benzerler ama class değildirler. daha küçük verilerle uğraşılırken kullanılırlar.tüm value tipler struct'dır.

sealed class = bu classın inheritğince vermesi engellenmiş demektir.

Yield kumelenmis olan veriyi metod icerisinden geriye dondurmek icin

Ienumerator movenext

7.Hafta
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
IQueryable <T>
predicate = yüklem veya karşılaştırma işlemi
public interface IRepository

Facade Design Pattern:

*
Tek bir class'ın tüm sistemi temsil etmesi üzerine kuruludur.
*
Classları field olarak tutuyor.
*
Classların örneğini tek bir class içerisinde tutuyor.
*




thernary operatörü true false mantıksal ifadeleri kontrol eder



Repesitory Design Pattern
bilgi havuzu gibi anlamları vardır.

Bridge Design Pattern
Bir tane müşteri var müşteri ile alakalı işlem yapıyoruz base de nesnenin üzerinde işlem gerçekleştiren abstract bir nesnemiz olsun. (soyut bir nesnemiz olsun.)
Örn IDataObject interface içerisinde add delete get next priv show

interface | abstract class farkı =

generic inteface her nesneye uygun
     
 
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.