The delete
here is a new C++11 thing, and tells the compiler that these methods doesn't exist. Otherwise the compiler would have created default versions of them.
The constructor taking a constant reference of its own class is a copy constructor. What the copy constructor is for should be explained in any beginners text about C++.
As the copy constructor and copy assignment operator are now deleted, it means you can't create an instance of derClass
from another instance of derClass
.