O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11

C++ Special Features

ERRORS AND EXCEPTIONS AND OPERATOR OVERLOADING

LEARNING OBJECTIVES

At the end of this chapter, you should be able to

  • Write objective-oriented C++ programs that incorporate errors and exceptions.

  • Write programs with your own errors and exceptions class to suit particular and individual needs.

  • Write programs with overloading of operators.

11.1 Introduction

Many of you would have come across a pop-up while using the Internet or operating system, wherein the pop message says “OS or Browser has experienced a serious problem and needs to be closed down. Error reporting is in process”. Indeed, error has occurred. Despite elaborate testing prior to delivery, errors cannot be prevented but they can be minimized. In this chapter, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required