Page 237 - DCAP404 _Object Oriented Programming
P. 237

Object-oriented Programming




                    Notes                        }
                                            };
                                            main()
                                            {
                                                 one  O1,  O2;
                                                 O1.set(10);
                                                 O2.show();
                                            }

                                   10.  What is the purpose of a pure virtual function? Illustrate with a suitable example.

                                   Self Assessment

                                   1.  overriding                        2.   function
                                   3.  virtual                           4.   base class
                                   5.  override                          6.   =0

                                   7.  Derived                           8.   Base
                                   9.  Abstract                          10.  pure virtual function
                                   11.  override                         12.  inherited
                                   13.  polymorphic                      14.  objects

                                   15.  classes

                                   10.8 Further Readings




                                   Books       E Balagurusamy; Object-oriented Programming with C++; Tata Mc Graw-Hill.
                                               Herbert Schildt; The Complete Reference C++; Tata Mc Graw Hill.
                                               Robert Lafore; Object-oriented Programming in Turbo C++; Galgotia.




                                   Online links  http://www.artima.com/cppsource/pure_virtual.html
                                               http://publib.boulder.ibm.com/infocenter/comphelp/v8v101 index.jsp?topic=
                                               %2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2Fcplr142.htm


















          230                               LOVELY PROFESSIONAL UNIVERSITY
   232   233   234   235   236   237   238   239   240   241   242