Predefined class member functions and inheritance

L

lovecreatesbeauty

Predefined class member functions and inheritance


How many member functions on earth can be provided (predefined) by
standard-compliant compilers?


Scott Meyers says that there are 6: (1)default constructor, (2)copy
constructor, (3)destructor, (4)assignment operator, (5)address-of
operator (non-const), (6)address-of operator (const), in `Effective
C++, 2nd` item 45.


Bjarne Stroustrup mentioned one more: operator, (i.e. comma operator)
in `The C++ programming Language, special edition` section 11.2.2.


Derived classes won't inherit these member functions provided
(predefine) by compilers from father classes, right?


Thank you
lovecreatesbeauty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top