Course Wrap Up

The course is part of this learning path

Start course
Overview
Difficulty
Intermediate
Duration
1h 51m
Students
13
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've learned a ton of fundamental skills and knowledge related to exceptions. We have learned the importance of testing and debugging our software as well, and some of the tools we can use for that. In C++, exceptions are objects that represent a situation usually a problem that needs to be addressed. These can be caused by errors in logic or poor coding practices or even things out of our control by the time the user installs the software we create. Exceptions are generally better technique than error codes and return values and many other techniques for indicating that problems have occurred. We've learned a little bit about inheritance and the exception inheritance hierarchy. In terms of built-in exceptions in C++, we focused on two of the most popular direct children of the exception class. The runtime error and logic error classes. We also learned about try-catch structures for working with our exceptions. I discussed how to throw and even re-throw exceptions in your own code as well. We went a step further and learned how simple it is to make our own custom exceptions using simple inheritance techniques. Finally, we had some great projects where you stretch your abilities a little bit so you could practice working with both built-in and custom exceptions. In the next section, we will be discussing a topic that a lot of beginning C++ developers and even more advanced developers are a little nervous about, Pointers. We will learn that they're really not that scary and we can use them to our advantage to produce dynamic behavior in our code, that wouldn't be possible without them. So, let's get going with the next section. I'll see you there.

About the Author
Students
316
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