GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

A method can return a primitive value or a struct object, bu…

A method can return a primitive value or a struct object, but it cannot return an object that is an instance of a class.

Read Details

The following statement will cause a compiler error:int numb…

The following statement will cause a compiler error:int number = null;

Read Details

In code that creates an instance of a class, you access the…

In code that creates an instance of a class, you access the class object’s properties in the same way that you would access public variables.

Read Details

Constructors cannot accept arguments in the same way as othe…

Constructors cannot accept arguments in the same way as other methods.

Read Details

To make a property read-only, you must omit the get accessor…

To make a property read-only, you must omit the get accessor for the property.

Read Details

A class is not an object; it is a description of an object.

A class is not an object; it is a description of an object.

Read Details

Assume that a class has a field named count. A method in the…

Assume that a class has a field named count. A method in the same class has a local variable named count. If the method executes the statement count = 10; the value 10 will be assigned to the count field, not the local variable.

Read Details

When you create an object from a class you use a reference v…

When you create an object from a class you use a reference variable to reference that object.

Read Details

The set accessor is executed any time that a property is rea…

The set accessor is executed any time that a property is read.

Read Details

When a class contains a method that uses the public access m…

When a class contains a method that uses the public access modifier, the method can be called from outside the class.

Read Details

Posts pagination

Newer posts 1 … 25,714 25,715 25,716 25,717 25,718 … 87,424 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top