.Net

Ace your homework & exams now with Quizwiz!

Variables

A way to store information, exist in memory

internal

Access is restricted to the code in the same assembly.

Variables

Begin with alphabetic character or underscore, contain only alphabetic characters, numbers and underscores

Base class library BCL

Classes that provide bass functionality for .net framework

Managed code

Code that Runs within the .net common language runtime

Unmanaged code

Code that runs outside of the.net common language runtime

An Assembly

Compiled managed code, The output looks like EXE or DLL, contains Metadata with a Manifest

System.Xml

Contains classes for processing XML

System.Text

Contains classes for text encoding and string operations.

System.Windows

Contains classes that help you build Windows applications

Microsoft.CSharp

Contains classes that support compilation and code genera- tion for C# programming language

Manifest

Contains version, name, culture, security requirements, list of public types and required external references of an assembly

Variables

Have three components datatype, name and value

protected internal

In this access modifier,access is restricted to any code in the same assembly and only to derived classes in another assembly.

Common language run time

It's purpose is to load and run applications compiled to intermediate language

Common language runtime

Manages.net bass services such as memory management, garbage collection, exception handling and loading and running applications

.NET run time/CLR

Must be installed on client computers in order to run .net code

Inheritance

OOP technique that enables you to create new classes that reuse, extend, and modify the functionality defined in existing classes.

Common language runtime

Provides runtime environment for all.net applications

Base class library Namespaces

System System.Data System.Diagnostics System.Globalization System.IO System.Text System.Web System.Windows.Forms

derived class

The class that inherits functionality is a

Abstract modifier

This modifier indicates that the thing being modified has a missing or incomplete implementation. This modifier can be used with classes, methods, properties, indexers, and events.

the is operator

To avoid runtime errors, such as the InvalidCastException, the __ operator can be used to check if the cast is allowed before actually performing the cast:

.NET languages

Visual Basic, C#, C++, Jscript

method

a block of code containing a series of statements that can be called from elsewhere in a program. specify an object's behavior.

A property

a block of code that allows you to access a class data field in a safe and flexible way.

constructor

a block of code used to initialize the data members of the object.

A class library

a collection of functionality defined in terms of classes, interfaces and other types that can be reused to create applications, components, and controls.

Namespace

a language element that allows you to organize code and create globally unique class names.

An assembly

a unit of executable code that can be independently versioned and installed.

public

access modifier where access is not restricted.

protected

access modifier where access is restricted to the containing class and to any class that is derived directly or indirectly from the containing class. You'll learn more about the derived classes in the section, "Understanding Inheritance" later in this lesson.

private

access modifier where access is restricted to the containing class.

Encapsulation

an information-hiding mechanism that makes code easy to maintain and understand.

Static members

belong to the class itself rather than individual objects.

The this keyword

can be used to access members from within constructors, instance methods, and the accessors of instance properties.

accessors of a property

contain the code associated with reading for writing the property value.

Access modifiers

control where a type or type member can be used.

The new keyword

creates a new member with the same name in the derived class and hides the base class implementation.

Auto implemented properties

enable you to quickly specify a property of a class without having to write code to Get and Set the property.

The IComparable interface

has a single method that accepts an object and returns an int. The return value of this method indicates the result of comparing the given parameter with the current object.

An object

is created from the templates defined by classes.

convention to name private data fields

is to begin each name with a lowercase letter.

System.Web

namespace that Contains classes that help you build Web applications

System.Data

namespace that contains classes for accessing and managing data

System.ServiceModel

namespace that contains classes that help you build Windows Communication Foundation (WCF) applications

System.IO

namespace that contains classes that provide functionality for input and output

System Namespace

namespace that contains fundamental classes and base classes that define most common functionality

A property

often defined as public and by convention (it always has a name that begins with a capital letter).

Object-oriented programmin

programming technique that makes use of objects.

Events

provide communication between the objects.

sealed class

provides complete definition for a class but cannot be used as a base class

The override keyword

replaces a base class member in a derived class.

Objects

self-contained data structures that consist of properties, methods, and events.

the as operator

similar to the cast operation, but in the case of __, if the type conversion is not possible, null is returned instead of raising an exception.

access modifier

specifies what region of the code will have access to a field or method.

Methods

specify an object's behavior.

Properties

specify the data represented by the object

class

template from which individual objects are created.

Polymorphism

the ability of the derived classes to share common functionality with the base classes but still define their own unique behavior.

A method is declared by specifying :

the access level, the return type, the name of the method, parentheses which may contain an optional list of parameters followed by a block of code enclosed in braces.

base class.

the class whose functionality is inherited is a

casting.

the process for when the runtime allows you to convert an object to any of its base types.

The Object class

the ultimate base class of all the classes in the .NET Framework.

The set accessor

used to assign a new value to the property.

An interface

used to establish contracts through which the objects interact with each other without knowing the implementation details.

The get accessor

used to return the property value.

The .NET Framework

uses namespaces to organize all of its classes and provides a large collection of classes that you can use in your code and benefit from the predefined functionality.


Related study sets

NCLEX Review Questions Fall 2021

View Set

ACC 216 Chapter Eight (final exam)

View Set

Bio 112 - 2.7 - Types of RNA and the Fate of the Primary Transcript

View Set

World History Philosophes And Physiocrats

View Set

Archer Review - Baseline assessment

View Set