Observer Pattern
optimal for multiple subjects (ex: product types) and multiple observers (ex: store types)
Observer Pattern
optimal for multiple subjects (ex: product types) and multiple observers (ex: store types)
which makes it so that the type of the object is considered at runtime, rather than from the type of the variable
object is of type B, variable is of type A
if (this == other) return *this;
self-assignment would cause an infinite loop
int
how that legal?
int *data = this->data;
does this->data return an address??
ANS; no
pretty sure it should day "Node" here
Node
delete constructor
v
incorrect, should be Vector
new
new always allocates on hea
References
#include <libx> #define __LIBX__
body of if statement