Description
Write a fake vector class. The class should use the built-in vector/list/array in your language of choice to effectively “wrap” inside of it an existing vector, while presenting a limited vector-like functionality to the user. Here is a TypeScript interface that represents what your class should look like:
virtual class, because the class you write must implement/inherit the interface/class that is shown above. If you are programming in raw JavaScript (ES6/ES2015), you cannot implement the interface, but you should carefully program your class to work identically to the presented interface.
Reviews
There are no reviews yet.