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 my colleagues to send a letter to the customer reaction,Most messages are garbled。Get the questionable message,Is a garbled text of the letter,And Sent Sent party is actually a html format,This is the case with previous experience are not the same,In the past when it was sent,Use the RTF format,And the other party is not using Outlook,Will cause damage to contents。
Yesterday the installation of a new computer,When you enable Office 2013 serial number,Out of a "very sorry,An error occurred,Are unable to process your request。Please try again later。(0xC004C780)」,To select a line and then jump to the start screen or telephone。
Impression from the beginning of high school,As long as the beginning of a cold sore throat,Will be the last to do three months ending cough,It has been very afraid of cold from the beginning of the cough,And my body went to the doctor often useless,So a few years will not see a doctor cold,Later tried to be good in a few years to see a doctor,But the effect is limited。
Continue browsing »
The reaction colleagues previously outpoint,Line on the phone can send messages correctly,But can not send pictures,Also the use of a network that is normally。Research for a while,Thought it would not be a problem MTU,Sonet network is just the problem of mining pppoe dial-up,Internet search will recommend value,General advice is 1492 or 1484,The default value is 1500 Sonicwall firewall,After adjustment,Line normal to send pictures。
Continue browsing »
>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 enables you to work with databases as .mdf files.
>Typically, LocalDB database files are kept in the App_Data folder of a web project.
>SQL Server Express is not recommended for use in production web applications.
>LocalDB in particular should not be used for 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.