مفاهیم پیشرفته شی گرایی - قسمت اول

کار با انواع Modifier ها 

Virtual - Override - Abstract - Sealed

و Interface ها 

دانلود

Classes vs Structures

 Both Can Contain Members : Fields & Methods

 Both Require a Constructor to Create a new instance of themselves , and Like All Types

 in the .Net Framework Both Inherited From Object.


Key Difference : Classes Are Reference Types & Structs Are Value Types


On a Low Level : Instances Data of Classes is Allocated on the Heap. 

Instances Data of Structs is Allocated on the Stack.


Access To The Stack is Designed to be Light and Fast ! But Storage of Large 

Amounts of Data on The Stack Can Impede overall Application Performance.


Structs Are Best Used for Smaller , Lightweight Objects that Contain Relatively 

Little Instance Data or For Objects that dont Persist For Long.


Classes Are Best Used for Larger Objects that Contain More Instance data and are 

Expected To Exist in Memory for Extended Periods.


----


More Information


AdventureWorks Database

برای آشنایی با دیتابیس AdventureWorks در جهت بهبود طراحی دیتابیس می توانید از لینک های زیر استفاده کنید .


Schemas in AdventureWorks