1/26
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Method
in programming refers to a set of instructions grouped together within a code block.
Main method
serves as the starting point for any C# program and is initiated by the common language runtime (CLR) upon program launch.
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.
Custom Method
is a user-defined method that contains a specific set of code instructions.
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.
Array
Is declared by specifying the type of its element
type [ ] array name;
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.
Two dimensional array
arrays that have more than one dimension
initialized like “type [ , ] array name”
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
ArrayList
stores elements of multiple data types whose size can be changed dynamically.
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
Modifiers
control the access levels and visibility of class members (fields, properties, methods, etc.) within a C# program.
public
The code is accessible for all classes
Private
The code is only accessible within the same class
Protected
The code is accessible within the same class, or in a class that is inherited from that class
Internal
The code is only accessible within its own assembly, but not from another assembly
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
Abstraction
Means showing only the important features of an object while hiding unnecessary details
Implemented using abstract classes and Interfaces
Interface
Defines a set of actions that a class must implement
Inheritance
Allows one class to reuse the fields and methods of another class.
Polymorphism
Allows different classes to respond to the same method call in different ways
Class
Defines the structure of the code
This
Is a keyword that refers to the current object
It is commonly used when a field and a parameter have the same name
Method Overriding
This means that a child class changes the behavior of a parent method
Static Class
is used without creating an object
it cannot be instantiated and only contains static members
Sealed Class
a class that cannot be inherited
Partial class
This allows one class to be split into multiple files
The parts of the partial class becomes one class when compiled