When we have const or references in assignment operator , then compiler force you to write your own assignement operators. The reason is , const and reference variables can not be re-assigned once we initialized them during construction.
Thursday, 3 April 2014
When you HAVE TO write assignment operator?
Labels:
assignment operator,
c++,
mandatory
Subscribe to:
Post Comments (Atom)
AWS Data Pipeline Services
https://www.youtube.com/watch?v=tykcCf-Zz1M
-
Here is the simple code for finding the maximum of a BST: /* Tree Maximum */ Tree* maxTree(struct Tree *node) { while(node->right) nod...
-
#include<iostream.h> #include<conio.h> #include<stdlib.h> class Node{ public: Node* left; Node* right; in...
-
Follow this order for design interview prep: Connect to Arslan Ahmad on linked in, lot of good quick cheet sheets you get from Arslan on s...
No comments:
Post a Comment