Object-Oriented Programming · Akuna Capital · Medium
Requirements You are given an incomplete C++ object-pool implementation. Resolve its compilation errors and provide an implementation of numAllocated(). The exposed layout is: Several intentionally straightforward defects prevent the supplied code from compiling. Your completed implementation must determine the number of pool nodes that have currently been handed out. Notes Approach this as an exercise in reading code and applying core C++ knowledge. A probable invariant is…
Checking your access…