Save
DCIT 23
Module 2
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Hannah Elisha
Visit profile
Cards (15)
Variables
Named storage locations that can hold different values during program execution
View source
Operators
Symbols used to perform operations on operands (values or variables)
View source
String Manipulation
Techniques used to modify and extract information from strings
View source
C#
Object-oriented programming language
Program consists of various objects that interact with each other via actions
Actions that an object may take are called methods
Objects of the same kind are said to have the same type or be in the same class
View source
Basic Syntax
1. using System;
2. namespace Example Program;
3. public class Example
4. public static void Main()
View source
namespace
Keyword used to name your project/program
View source
class
Keyword used for declaring a class, which is a collection of methods, events, variables, objects and more
View source
method
A block of code that defines how an action is performed, associated with a class or object
View source
comments
Used for explaining code, ignored by the compiler
View source
Identifiers
Names used to identify a class, variable, function, or any other user-defined item
Must begin with a letter, can be followed by letters, digits, or underscores
Cannot contain embedded spaces or symbols (except underscore)
View source
Casting
Assigning a value of one data type to another type
View source
Arithmetic Operators
Perform mathematical calculations (+, -, *, /, %, ++, --)
View source
Relational Operators
Compare two values, resulting in a boolean value (true or false) (==, !=, >, <, >=, <=)
View source
Logical Operators
Combine and evaluate boolean expressions (&&, ||, !)
View source
Assignment Operators
Assign values to variables (=, +=, -=, *=, /=, %=)
View source