JAVA Interface跟抽象class只要有定義方法,在class中就必須要再對此方法做完整的定義。 C# 將共同特性從類別中萃取的過程,稱之為抽象化。 abstract class:封裝同類型物件的共同特性,如機車、公車的車輛屬性。 interface:定義不同類型物件的共同特性,滑鼠、NB的USB介面。 介面可視為一份合約,合約的內容可透過實作此介面的類別加以實現。 利用介面將實作內容與定義分離,可為日後程式的開發及擴充性保留彈性。 為介面命名時,習慣在最前面加上I,意指Interface。 abstract:一定要override,否則也要宣告為abstract virtual:可改可不改 sealed:不可改
Interface: 定義為抽象的概念,與Class差別為,界面雖然有包含屬性與方法,但只宣告而不包含實作內容。 --類別只能"繼承"一個父類別,但能"實作"(語法跟繼承很像)多個介面。(老爸只能有一個,乾爹可以認很多個的概念) --類別實作介面時,只會得到方法的名稱,不會包含任何實作內容。
class Aaa{} //class類別
decimal Bbb(){} //method方法
int Ccc{get; set;} //property屬性
。不含set的屬性被視為唯讀
。不含get的屬性被視為唯寫
。同時具有這兩種存取子的屬性則為可讀寫
Console.WriteLine() 秀畫面並換行; Console.Write() 秀畫面;
========================
Console.Write(string.Format("{0}*{1}={2:00}\t", j, i, j * i));
//類矩陣的方式,定義每個值的顯示方式
Yesterday, a colleague reported that when sending emails to clients,some emails turned into garbled text。After obtaining the problematic emails,they were plain text with garbled characters,while the sender’s sent items backup showed them in HTML format,這跟以往遇到的情形不太一樣,以往是寄出時,使用了RTF的格式,且對方不是使用Outlook,才會造成內容損壞。

昨日在安裝新電腦,啟用Office 2013序號時,跳出一個「很抱歉,發生錯誤,目前無法處理您的要求。請稍後再試。(0xC004C780)」,Then it jumps to the screen where you have to choose online or phone activation。

Impression starts from high school days,As long as the cold starts with a sore throat,It always ends with a three-month cough,So I've always been afraid of colds that start with a cough,And seeing a doctor usually doesn't help much for my constitution,So there were several years when I would catch a cold but not go see a doctor,Later, I tried for a few more years to obediently go see a doctor,But the effect was still limited。
繼續瀏覽 »
Previously, external colleagues reported,Line on the phone could send messages normally,But could not send pictures,And using another network it worked fine。After studying for a while,I thought it might be an MTU problem,剛好出問題的Sonet網路是採pppoe撥號,便上網查建議數值,一般建議是1492或1484,而Sonicwall防火牆預設值是1500,在調整過後,Line即可正常傳送圖片。
繼續瀏覽 »
>Entity Framework(often referred to as EF):
>a .NET Framework data-access technology to define and work with model classes.
>By default, the Entity Framework looks for a connection string named the same as the object context class (MovieDBContext for this project).
>Entity Framework is default to using LocalDB.
>LocalDB is a lightweight version of the SQL Server Express Database Engine
>LocalDB runs in a special execution mode of SQL Server Express that lets you work with databases as .mdf files.
>Typically,, LocalDB database files are stored in the App_Data folder of a web project.
>SQL Server Express is not recommended for use in production web applications.
>LocalDB specifically should not be used in production with a web application because it is not designed to work with IIS. However,, a LocalDB database can be easily migrated to SQL Server or SQL Azure.











