August 2017
Beginner
566 pages
12h 34m
English
For review, the complete version of the Default.aspx.cs file for this lesson, including comments, is displayed in the following code block:
//using is a directive//System is a name space//name space is a collection of features that our needs to runusing System;//public means accessible anywhere//partial means this class is split over multiple files//class is a keyword and think of it as the outermost level of grouping//:System.Web.UI.Page means our page inherits the features of a Pagepublic partial class _Default : System.Web.UI.Page{ protected void Button1_Click(object sender, EventArgs e) { Vector vec1 = new Vector(1, 2);//define three new vector Vector vec2 = new Vector(3, 4); Vector vec3 = new Vector(5, 6); Vector[] vecs ...Read now
Unlock full access