C#: Ch. 9: Using Classes and Objects

C#: Ch. 9: Using Classes and Objects

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

reference type

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (44)

Section 1

(44 cards)

reference type

Front

A type that holds a memory address.

Back

default value of an object

Front

The value initialized with a default constructor.

Back

assembly

Front

A group of code modules compiled together to create an executable program.

Back

default constructor

Front

A parameterless constructor.

Back

"private"

Front

A class access modifier that means access is limited to another class to which the class belongs. In other words, a class can be this if it is contained within another class, and only the containing class should have access to this class.

Back

has-a relationship

Front

This is created using composition because one class "has an" instance of another.

Back

value types

Front

Types that hold values; they are predefined types such as "int", "double", and "char."

Back

destructor

Front

This contains the actions required when an instance of a class is destroyed.

Back

parameterless constructor

Front

A constructor that takes no arguments.

Back

this reference

Front

The reference to an object that is implicitly passed to an instance method of its class.

Back

implicit parameter

Front

A parameter that is undeclared and gets its value automatically.

Back

IComparable interface

Front

This contains the definition for the CompareTo() method.

Back

CompareTo() method

Front

This method of the IComparable interface compares one object to another and returns an integer.

Back

class access modifier

Front

This describes access to a class.

Back

composition

Front

The technique of using an object within another object.

Back

invoking object

Front

An object that calls an instance method.

Back

getter

Front

Another term for a class property's get accessor.

Back

set accessors

Front

These assign object fields that allow the use of the assignment operator with a property name.

Back

read-only property

Front

This property only has a get accessor, not a set accessor.

Back

"internal"

Front

A class access modifier that means access is limited to the assembly to which the class belongs.

Back

constructor initializer

Front

A clause that indicates another instance of a class constructor should be executed before any statements in the current constructor body.

Back

backing field

Front

A field that has a property coded for it.

Back

contextual keywords

Front

Identifiers that act like keywords in specific circumstances.

Back

auto-implemented property (automatic property)

Front

A property in which the code within the accessors is created automatically. The only action in the set accessor is to assign a value to the associated field, and the only action in the get accessor is to return the associated field value.

Back

class client or class user

Front

A program or class that instantiates objects of another prewritten class.

Back

instantiate

Front

To create an object.

Back

instantiation

Front

When a class creates an object.

Back

fields

Front

Instance variables within a class.

Back

setter

Front

Another term for a class property's set accessor.

Back

property

Front

A member of a class that provides access to a field of a class; they define how fields will be set and retrieved.

Back

instance methods

Front

Methods that are used with object instantiations.

Back

object initializer

Front

This allows you to assign values to any accessible members or properties of a class at the time of instantiation without calling a constructor with parameters.

Back

instance variables

Front

In a class, these are the data components that exist separately for each instantiation.

Back

state

Front

An object's set of contents of its fields.

Back

"public"

Front

A class access modifier that means access to the class is not limited.

Back

information hiding

Front

A feature found in all object-oriented languages, in which a class's data is private and changed or manipulated only by its own methods.

Back

class header or class definition

Front

This describes a class and contains an optional access modifier, the keyword "class", and any legal identifier for the name of the class.

Back

interface

Front

A collection of abstract methods (and perhaps other members) that can be used by any class, as long as the class provides a definition to override the interface's do-nothing, or abstract, method definitions.

Back

get accessors

Front

These access object fields that allow retrieval of a field value by using a property name.

Back

constructor

Front

A method that instantiates (creates an instance of) an object.

Back

overrides

Front

When a method does this, it takes precedence over the method, hiding the original version.

Back

accessors

Front

In properties, they specify how a class's fields are accessed.

Back

"protected"

Front

A class access modifier that means access to the class is limited to the class and to any classes derived from the class.

Back

instance

Front

One individual object of a class.

Back