The Fifth Continent

Menu

Skip to content
  • Home
  • About this Blog
  • Contact Me

Exceptions

Posted August 30, 2024 by Richard

Exceptions are an error handling mechanism built into C++. They are handled through the mechanism of try and catch blocks.

Continue reading →

Posted in: C++ | Leave a comment

Pure Virtual Functions

Posted August 29, 2024 by Richard

Pure virtual functions are functions that are not implemented in the base class but must be implemented in a concrete derived class.

Continue reading →

Posted in: C++ | Leave a comment

Dynamic Casts

Posted August 29, 2024 by Richard

Dynamic casts allow us to transform from a base class to a derived class and perform non-polymorphic actions on it.

Continue reading →

Posted in: C++ | Leave a comment

Polymorphism

Posted August 29, 2024 by Richard

Basically, polymorphism is a base pointer or reference managing a derived class.

Continue reading →

Posted in: C++ | Leave a comment

Inheritance

Posted August 27, 2024 by Richard

Inheritance is a method of code reuse. It works by having a class extend another.

Continue reading →

Posted in: C++ | Leave a comment

Overloading Logical Operators

Posted August 26, 2024 by Richard

Overriding logical operators allows us to compare and order things. Logical operators are binary operators and the same rules apply as for other binary operators.

Continue reading →

Posted in: C++ | Leave a comment

Operator Overloading

Posted August 24, 2024 by Richard

Operator overloading allows us to have our classes work with the C++ standard operators, such as +, <<. and >>. This has the effect of making our classes more natural to use and they feel like part of the language.

Continue reading →

Posted in: C++ | Leave a comment

Smart Pointers

Posted August 23, 2024 by Richard

Smart pointers are modern C++ solving the main problem with raw pointers, memory management and remembering to free heap memory with delete. They should be preferred in any new program.

Continue reading →

Posted in: C++ | Leave a comment

Linkages, Extern, and Inline

Posted August 23, 2024 by Richard

Linkage describes the visibility of variable and function names across translation units. Extern and inline are ways to manipulate that visibility.

Continue reading →

Posted in: C++ | Leave a comment

Namespaces

Posted August 22, 2024 by Richard

Namespaces are like packages in Java, they allow you have the the same function signature multiple times.

Continue reading →

Posted in: C++ | Leave a comment

Static Variables

Posted August 21, 2024 by Richard

Static variables are variables that are not tied to a particular instance, rather they are tied to the class. This means all instances share a copy of static member variables.

Continue reading →

Posted in: C++ | Leave a comment

Friend functions and classes

Posted August 21, 2024 by Richard

Friend functions and classes are external functions or classes which are granted access to all members of a class. To my mind, this breaks encapsulation and shouldn’t be done. Maybe that’s just my years of Java speaking. Maybe I just need to get used tot eh C++ way of doing things.

Continue reading →

Posted in: C++ | Leave a comment

Posts navigation

← Older posts
  • August 2024
    M T W T F S S
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
        Sep »
  • Recently Posted

    • Git Reset and Revert et al.
    • Ignoring Files with .gitignore
    • Rebasing
    • Git Tags
    • Merging Branches
    • Cloning Git Repositories
    • Git Branches
    • Basic Git Operations
    • Low Level Git
    • Organize Our Project
  • Categories

    • C++ (41)
    • CMake (4)
    • General (1)
    • git (9)
  • 4,364 spam blocked by Akismet (opens in a new tab)
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Powered by WordPress & Portfolio.