C# Fundamentals – Arrays, Collections, Classes & OOP

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/42

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key C# terms on arrays, collections, classes, object-oriented principles, file handling, and naming conventions.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

43 Terms

1
New cards

Single-dimensional array

A fixed-size linear collection of elements stored in one dimension with index access.

2
New cards

Multi-dimensional array

An array organized in two or more dimensions (e.g., rows × columns) such as 2D or 3D grids.

3
New cards

Collection (C#)

A class that stores, manages and manipulates groups of objects with dynamic sizing.

4
New cards

List

Resizable, ordered collection providing index access and efficient add/remove operations.

5
New cards

Dictionary

Collection that stores value pairs indexed by unique keys for fast lookups.

6
New cards

HashSet

Unordered collection of unique elements using hash codes for quick membership tests.

7
New cards

HashSet.UnionWith()

Adds all elements of another set, keeping only one occurrence of duplicates.

8
New cards

HashSet.IntersectWith()

Retains only elements present in both the current and the specified set.

9
New cards

HashSet.ExceptWith()

Removes from the current set any elements that also exist in another set.

10
New cards

Class

Blueprint that encapsulates data (fields/properties) and behavior (methods) into a single unit.

11
New cards

Property (C#)

Special class member that provides controlled access (get/set) to a private field.

12
New cards

Constructor

Special method called when an object is created to initialize its state; name matches class.

13
New cards

Method

Block of code inside a class that performs actions and can take parameters or return values.

14
New cards

Object

Concrete instance of a class with its own copy of the class’s data.

15
New cards

Encapsulation

OOP principle of bundling data with methods while restricting direct external access.

16
New cards

Abstraction

OOP concept of exposing essential features while hiding complex implementation details.

17
New cards

Inheritance

Mechanism allowing a class (child) to derive attributes and behaviors from another (parent).

18
New cards

Polymorphism

Ability to treat objects of different derived classes as instances of a common base type.

19
New cards

Method overloading

Compile-time polymorphism where multiple methods share a name but differ in parameters.

20
New cards

Method overriding

Run-time polymorphism where a derived class provides its own implementation of a base method.

21
New cards

Virtual method

Base-class method marked to allow overriding by derived classes.

22
New cards

base keyword

Keyword used to call a base-class constructor or access base members from a derived class.

23
New cards

override keyword

Modifier that replaces a virtual/abstract base-class method with a new implementation.

24
New cards

Abstract class

Class that cannot be instantiated and may contain abstract methods requiring overrides.

25
New cards

Interface

Pure contract listing method/property signatures; contains no implementation.

26
New cards

Static class

Class that cannot be instantiated and contains only static members; used for helpers/utility.

27
New cards

Sealed class

Class that cannot be inherited, preventing further extension and sometimes improving performance.

28
New cards

Partial class

Class split across multiple source files to improve organization of large codebases.

29
New cards

Nested class

Class declared inside another class to increase encapsulation and context grouping.

30
New cards

Anonymous class

Compiler-generated temporary type with read-only properties, often used in LINQ projections.

31
New cards

Extension method

Static method in a static class that adds new behavior to an existing type without modifying it.

32
New cards

Static member

Field, property, or method shared by all instances and accessed via the class name.

33
New cards

Access modifier

Keyword that controls visibility of classes and members (public, private, protected, internal).

34
New cards

public

Access modifier allowing visibility from any assembly or class.

35
New cards

private

Access modifier restricting visibility to the containing class only.

36
New cards

protected

Access modifier allowing visibility within the class and its derived classes.

37
New cards

internal

Access modifier limiting visibility to types within the same assembly/project.

38
New cards

Constructor chaining

Technique of calling one constructor from another to reduce code duplication.

39
New cards

File.WriteAllText()

Writes text to a file, overwriting any existing content.

40
New cards

File.AppendAllText()

Adds text to the end of an existing file without deleting current content.

41
New cards

camelCase

Naming style for variables/parameters where the first word is lowercase and subsequent words are capitalized.

42
New cards

PascalCase

Naming style for classes/methods where every word, including the first, is capitalized.

43
New cards

CONSTANTUPPERCASE

Convention of writing constant identifiers in all caps with underscores, e.g., MAX_LIMIT.