-
Book Overview & Buying
-
Table Of Contents
Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained
By :
In this book, you were first introduced to class diagrams in Chapter 5. There you learned that unlike in C#, several conventions need to be used in order to implement typical OOP concepts using JavaScript code. Class diagrams use different conventions for the different types of items they describe, such as class fields, properties, methods, and events.
Fields are variables of primitive types and can be accessed directly using a class instance. Properties are mechanisms where the values of class fields can be accessed or altered only through getter and setter functions. This restriction is by convention only; the fields that store property values can be accessed directly, but the convention requires using the getter and setter methods.
The property’s field that internally store its value is declared with a leading underscore (_). The getter and setter methods are prefixed with “get_” and “set_” followed by the property name. For example, a property called name would be implemented...
Change the font size
Change margin width
Change background colour