Please enable JavaScript.
Coggle requires JavaScript to display documents.
c# fundamentals - Coggle Diagram
c# fundamentals
Operators(used to perform operations on variables and values)
Multiplication *
Division /
Subtraction -
Modulus %
Addition +
Increment ++
Decrement --
OOP(object-oriented programming )
Objects(an instance of a class)
Classes(class is a template for objects)
Class Members(Fields and methods inside classes)
Methods(a block of code which only runs when it is called.)
Fields(variables inside a class)
Access Modifiers(used to set the access level/visibility for classes, fields, methods and properties.)
Private
Protected
Public
Internal
Inheritance( to inherit fields and methods from one class to another)
Derived Class(the class that inherits from another class)
Base Class( the class being inherited from)
Principles
Abstraction(In order to use it, one class could not know the inner specifics of another, only understanding the interfaces should be good enough.)
Inheritance(We can re-use the code of existing super classes in derived classes.)
Encapsulation(Encapsulation is the process by which access to public methods is prevented by covering the implementation of data. Instance variables are kept private and to do this, accessor methods are made public.)
Polymorphism(static-Static polymorphism is accomplished by overloading method. Dynamic-method overriding
Type Casting(Assigning a value of one data type to another type)
Explicit Casting(Automatically done after passing a smaller size type to a larger size type)
Implicit Casting(Manually done by placing the type in parentheses in front of the value)
Variable(The place where data is stored)
Data types(It specifies the size and type of variable values)
Int(Stores whole numbers from -2,147,483,648 to 2,147,483,647)
float(Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits)
bool(Stores true or false values)
long(Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807)
char(Stores a single character/letter, surrounded by single quotes)
double(Stores fractional numbers. Sufficient for storing 15 decimal digits)
string(Stores a sequence of characters, surrounded by double quotes)