User Defined Types

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:21 AM on 8/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

User-Defined Type

A custom data type created by a programmer to represent information and behavior specific to an application.

2
New cards

Structure (struct)

a user-defined value type that groups related data together. Unlike classes, these are stored by value and are typically used for small, lightweight objects.

3
New cards

Interface

Defines a contract that specifies which members a class or structure must implement without providing their implementation

4
New cards

Enumeration (enum)

a user-defined value type that represents a fixed set of named constants

5
New cards

enum ElementState { Solid, Liquid, Gas }

Type an example of ‘enum’

6
New cards

Record

A reference type designed primarily for storing immutable data. They automatically provide value-based equality and simplified syntax

7
New cards

Record Struct

A value type that combines the lightweight storage of a structure with the value-based equality features of a record.

8
New cards

Delegate

A type-safe object that stores a reference to one or more methods, allowing methods to be passed as arguments or called indirectly

9
New cards

Event

A mechanism that allows one object to notify other objects when a specific action or change has occurred.

10
New cards

Generic Type

A class, structure, interface, or method that uses type parameters so it can operate on different data types while maintaining type safety.

11
New cards

Type Parameter

A placeholder for a data type used when defining a generic type or generic method.

12
New cards

Generic Constraint

Restricts the kinds of data types that can be used as type arguments for a generic type or method.

13
New cards

Partial Class

Allows the definition of a single class to be split across multiple source files

14
New cards

Nested Type

A class, structure, interface, or enumeration declared inside another type.

15
New cards

Anonymous Type

A compiler-generated type whose name is not explicitly declared by the programmer. It is commonly used for temporary objects

16
New cards

Nullable Value Type

Allows a value type to also store the value ‘null’

17
New cards

int? double? bool?

Type three examples of nullable value types

18
New cards

Nullable Reference Type

Reference type that explicitly indicates that a reference variable is allowed to contain ‘null’, improving compile-time null-safety

19
New cards

Type Alias

Assigns an alternate name to an existing type using the ‘using’ directive

20
New cards

using Atom = Chemistry.Element

Type an example of ‘Type Alias’

21
New cards

Accessibility Level

Determines where a user-defined type can be accessed within a program

22
New cards

public internal private

Type three examples of Accessibility levels

23
New cards

Sealed Class

A class that cannot be inherited by another class

24
New cards

Abstract Class

A class that cannot be instantiated directly and is intended to serve as a base class for other classes.