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, ...
Get Object-oriented Programming Using C++ and Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.