Exceptions and Debugging in C++

The course is part of this learning path

Course Overview
Overview
Difficulty
Intermediate
Duration
1h 51m
Students
18
Ratings
5/5
starstarstarstarstar
Description

In this course, we will discuss the topic of exceptions and debugging. We'll see that exceptions are objects representing exceptional situations and that these are usually problems in our code or in the environment in which our code is running. By using exception handling, we will know how to respond to problems when they arise.

Learning Objectives

  • Learn the proper syntax and techniques to work with exceptions
  • Understand inheritance in the context of Object-Oriented Programming

Intended Audience

  • Beginner coders, new to C++
  • Developers looking to upskill by adding C++ to their CV
  • College students and anyone studying C++

Prerequisites

To get the most out of this course, you should have a basic understanding of the fundamentals of C++.

 

Transcript

In this section, we will discuss the topic of exceptions and debugging. We'll see that exceptions are objects representing exceptional situations, that is, situations out of the ordinary. These are usually problems in our code or in the environment in which our code is running. By using exception handling, we will know how to respond to problems when they arise. We'll learn the proper syntax and techniques to work with exceptions, including built in exceptions, and even our own custom exceptions. We will even take a peek at inheritance, one of the three primary principles of Object-Oriented Programming. Exception handling is a crucial component in industry and academia for making fault-tolerant robust software. In other words, we want to write software that doesn't crash, and when it has to close it fails gracefully. Near the end of the section, we will work on a couple projects, including a project to ensure our percentage values don't exceed the allowed values in a grading application, as well as a project where we will write some software for our Starship Captain to make sure our work drive doesn't overheat and explode. So, there's lots of fun coming up. Let's get going with the first lecture filled with content on what exceptions are and the exception hierarchy. I'll see you there.

About the Author
Students
535
Courses
20
Learning Paths
4

John has a Ph.D. in Computer Science and is a professional software engineer and consultant, as well as a computer science university professor and department chair.

Covered Topics