11 Matching Annotations
- Dec 2017
-
raphaelkoh.me raphaelkoh.me
-
Observer Pattern
optimal for multiple subjects (ex: product types) and multiple observers (ex: store types)
-
- Nov 2017
-
anthony-zhang.me anthony-zhang.me
-
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
Tags
Annotators
URL
-
- Oct 2017
-
raphaelkoh.me raphaelkoh.me
-
int
how that legal?
-
-
anthony-zhang.me anthony-zhang.me
-
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
Tags
Annotators
URL
-