Page 309 - DCAP404 _Object Oriented Programming
P. 309

Object-oriented Programming                                     Pooja Gupta, Lovely Professional University




                    Notes                         Unit 14: Advanced Concept in C++


                                     CONTENTS
                                     Objectives

                                     Introduction
                                     14.1 Function of Templates

                                     14.2 Classes of Template
                                     14.3 The Typename Keyword
                                     14.4 Template Specialization

                                     14.5 Point of Instantiation
                                     14.6 Error Handling
                                     14.7 Error Isolation

                                     14.8 Concurrent Object-oriented Systems
                                     14.9 Summary
                                     14.10 Keywords

                                     14.11 Review Questions
                                     14.12 Further Readings

                                  Objectives


                                  After studying this unit, you will be able to:
                                      Describe the function of templates
                                      Describe the classes of templates
                                      Describe the templates specialization

                                      Explain the Error handling and error isolation
                                      Describe watch values, break point and stepping

                                  Introduction

                                  The template is one of C++’s most sophisticated and high-powered features. Although not
                                  part of the original specification for C++, it was added several years ago and is supported by
                                  all  modern C++ compilers.  Using templates, it  is possible to create  generic functions  and
                                  classes. In a generic function or class, the type of data upon which the function or class with
                                  several different types of data without having to explicity recode specific versions for each
                                  data type.











          302                               LOVELY PROFESSIONAL UNIVERSITY
   304   305   306   307   308   309   310   311   312   313   314