Please enable JavaScript.
Coggle requires JavaScript to display documents.
C# Fundamentals, References: https://www.w3schools.com/cs/default.asp …
C# Fundamentals
Data Types - attributes of data that specify the size and type of variable values
float
double
long
bool
int
char
string
Operators - used to perform operations on variables and values
Arithmetic Operators
Assignment Operators
Comparison Operators
Logical Operators
Conditional Statements
else
else if
if
switch
Defining Classes and Methods
Class
OOP (object-oriented programming)
faster and easier to execute
provides clear structure
the code doesn't repeat itself
possible to create full reusable applications
Classes and Objects
class - general
object - specific
Class Members (methods inside classes)
Fields (variables inside a class)
Object Methods (used to perform certain actions)
Constructors (method used to initialize objects)
constructor parameters
constructors save time
Access Modifiers (used to set access level)
public
private
Get and Set Properties
Encapsulation - the sensitive data is hidden from users
Access private classes
Inheritance
Derived Class
Base Class
Polymorphism (many forms)
Uses methods to perform different tasks
Abstraction (hiding certain details)
Abstract class - restricted class that cannot be used to create objects
Abstract method: can only be used in abstract class
Method - a block of code which only runs when it is called
Method Parameters
Parameters - variables inside the method
Default parameter value
Method Overloading
Multiple methods can have the same name with different parameters
C# Math (allows you to perform mathematical tasks on numbers)
Math.Max(x,y)
find the highest value of x and y
Math.Minn(x,y)
find the lowest value of x and y
Math.Sqrt(x)
returns the square root of x
Math.Abs(x)
returns the absolute positive value of x
Type Casting
Implicit Casting
Explicit Casting
Loops
While Loop
For Loop
Statements
Declaration Statements
Expression Statements
Comments
Used to explain C# code and to make it lore readable
Syntax
Variables - containers for storing data values
Expressions
Break/Continue
Arrays
Keywords
Expressions
Blocks - a combination of zero or more statements enclosed in { }
References:
https://www.w3schools.com/cs/default.asp
https://www.programiz.com/csharp-programming/expressions-statements-blocks#:~:text=An%20expression%20in%20C%23%20is,may%20not%20have%20any%20operator
.
https://docs.google.com/document/d/1m7azN7Iwxjesg-Eb1QHJ9WNXc7aUfbwnMJij_kdZVuk/edit
Mind map created by Valeri Vankov and Dara Tankova, 11/3