Page 327 - DCAP404 _Object Oriented Programming
P. 327

Object-oriented Programming




                    Notes          Stepping: Stepping refers to the execution of one instruction at a time, typically by pressing a
                                   function key to execute each instruction.
                                   Syntactic Errors: Syntactic errors are relatively easy to find and correct, even if the resulting
                                   error messages are unclear.
                                   Template: A template function may be defined  as an unbounded functions. All the  possible
                                   parameters to the function are not known in advance and a copy of the function has to be created
                                   as and when necessary.
                                   Template Classes: Template classes may be defined as the layout and operations for an unbounded
                                   set of related classes.
                                   Watch Value: Watch value  is the  value of a variable or  an expression  which is  displayed
                                   continuously as the program executes.

                                   14.11 Review Questions

                                   1.  What are Templates?
                                   2.  Define template instantiation.
                                   3.  List down the rules for using templates.

                                   4.  How can you get a template function instantiated?
                                   5.  Explain the use of:
                                       (a)  Watchvalues

                                       (b)  Breakpoints
                                       (c)  Stepping
                                   6.  Securitize the meaning of templates.
                                   7.  Give the syntax to declare a template. Explain with an example.
                                   8.  Define the template class with the explaining program.

                                   9.  Explain the rules for using templates briefly.
                                   10.  What do you mean by template specialization?
                                   11.  When can a template function be instantiated?

                                   12.  What happen if the template instance does not exist?
                                   Answers: Self  Assessment


                                   1.  Real word                         2.   Concurrent
                                   3.  Active                            4.   Synchronization
                                   5.  identifier                        6.   Rumbaugh
                                   7.  unbounded functions               8.   data type

                                   9.  specialization                    10.  syntactic
                                   11.  diagnostic                       12.  thread
                                   13.  process                          14.  Rumbaugh
                                   15.  Multithreading



          320                               LOVELY PROFESSIONAL UNIVERSITY
   322   323   324   325   326   327   328   329   330