Guest User

Untitled

a guest
Nov 28th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. struct A {};
  2.  
  3. struct B : A {
  4.  
  5.     B& operator=(const B&);
  6.  
  7. };
  8.  
  9. B& B::operator=(const B& s) {
  10.  
  11.     this->A::operator=(s);
  12.  
  13.     return *this;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment