Final Review

  • Encapsulating data and operations
  • Very important for data abstraction
  • Templates of classes and member functions
  • You will be expected to know the syntax reasonably well. Syntax errors are acceptable if they don’t indicate complete lack of semantic understanding.

template<class T, int max>

class example

{

public:

int size_of();

};

template<class T, int max>

int example<T,Max>::size_of()

{

}

  • Most important thing is understanding the pointer operations in the context of linked lists
  • Draw them pictorially, and may be translate them to C++ code
  • Understanding of the concept: The derived (child) class inherits all the members from its base (parent) class.
  • The syntax of inheritance
  • See the review from test-2
  • We used binary search algorithm where we had a loop, but the time was logarithmic
  • Next semester, we will learn recursion where there are no loops but time could be as high as exponential