1.

Observe the following code and chose the correct statement(s) class Name { const char *s ;. }; class Table { Name *p; size_t sz ; public : Table(size_ts = 15) {p = new Name [sz = s]; } ~Table() {delete [ ]p ;} Name * lookup(const char *); bool insert(Name *); };

A. ~Table() is a destructor
B. p is of Table type
C. Both A and B
D. insert() is a method which returns nothing
Answer» B. p is of Table type


Discussion

No Comment Found