OOP QUIZ 3

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

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:11 PM on 6/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

Method

  • in programming refers to a set of instructions grouped together within a code block.

2
New cards

Main method

  • serves as the starting point for any C# program and is initiated by the common language runtime (CLR) upon program launch.

3
New cards

Method Signature

  • Methods are declared in a class, struct, or interface by specifying the access level such as public or private, optional modifiers such as abstract or sealed, the return value, the name of the method, and any method parameters.

4
New cards

Custom Method

  • is a user-defined method that contains a specific set of code instructions.

5
New cards

Method Overloading

  • in C# allows you to define multiple methods with the same name but different parameter lists within the same class

  • This allows the performance of similar operations with different types or numbers of parameters.

6
New cards

Array

  • Is declared by specifying the type of its element

  • type [ ] array name;

7
New cards

Single-dimensional array

  • is a sequence of like elements.

  • You access an element via its index.

  • The index is its ordinal position in the sequence.

8
New cards

Two dimensional array

  • arrays that have more than one dimension

  • initialized like “type [ , ] array name”

9
New cards

Jagged Array

  • Is an array whose elements are arrays, possibly of different sizes

  • is sometimes called an "array of arrays."

  • Its elements are reference types and are initialized to null

10
New cards

ArrayList

  • stores elements of multiple data types whose size can be changed dynamically.

11
New cards

Linked List

  • is a linear data structure where each element (node) in the list is a separate object containing a data element and a reference (link) to the next node in the sequence

12
New cards

Modifiers

  • control the access levels and visibility of class members (fields, properties, methods, etc.) within a C# program.

13
New cards

public

  • The code is accessible for all classes

14
New cards

Private

  • The code is only accessible within the same class

15
New cards

Protected

  • The code is accessible within the same class, or in a class that is inherited from that class

16
New cards

Internal

  • The code is only accessible within its own assembly, but not from another assembly

17
New cards

Encapsulation

  • Means protecting the internal data of a class and controlling how other parts of the program can access or change it

  • It is commonly implemented using Private fields, Public properties, Public methods that control behavior

18
New cards

Abstraction

  • Means showing only the important features of an object while hiding unnecessary details

  • Implemented using abstract classes and Interfaces

19
New cards

Interface

  • Defines a set of actions that a class must implement

20
New cards

Inheritance

  • Allows one class to reuse the fields and methods of another class.

21
New cards

Polymorphism

  • Allows different classes to respond to the same method call in different ways

22
New cards

Class

  • Defines the structure of the code

23
New cards

This

  • Is a keyword that refers to the current object

  • It is commonly used when a field and a parameter have the same name

24
New cards

Method Overriding

  • This means that a child class changes the behavior of a parent method

25
New cards

Static Class

  • is used without creating an object

  • it cannot be instantiated and only contains static members

26
New cards

Sealed Class

  • a class that cannot be inherited

27
New cards

Partial class

  • This allows one class to be split into multiple files

  • The parts of the partial class becomes one class when compiled