Computer Science

Articles on computer science
Oct
31
Classes vs Objects

Classes vs Objects

Classes a type of template, whereas objects are an instance of a class.
1 min read
Oct
02
Inheritance vs Composition

Inheritance vs Composition

Inheritance is where a class inherits from another class, whereas composition is a class instance inside another class.
2 min read
Sep
12
Method Overriding vs Method Overloading

Method Overriding vs Method Overloading

Method overriding is used in inheritance, whereas method overloading is to provide multiple methods with the same name.
1 min read
Aug
29
Mutable vs Immutable

Mutable vs Immutable

Mutable variables can be reassigned a value whereas immutable variables cannot be reassigned a value.
2 min read
Jun
27
Constants vs Enumerations

Constants vs Enumerations

Enumerations are a set of fixed values, while constants are a single fixed value.
2 min read
Jun
14
Why Are Loops Needed in Programming

Why Are Loops Needed in Programming

There are three different use cases for using loops.
2 min read
Mar
08
Function Parameters vs Function Arguments

Function Parameters vs Function Arguments

Parameters are names, while arguments are values.
2 min read
Mar
01
Statement vs Expression

Statement vs Expression

Statements are used to execute something, while expressions return something.
2 min read
Feb
23
If Statement vs Guard Statement

If Statement vs Guard Statement

Knowing the difference can give you a new perspective on how to simplify your code.
2 min read
Jan
12
If Statement vs Switch Statement

If Statement vs Switch Statement

Switch statements execute one or more blocks of code based on an expression, whereas if statements execute a single block.
1 min read