Added .gitignore.
Added example on virtual functions in C.