C++ Template classes

This is what I’ve done in class for about 30 min. It was like an exercise for what we have learned the week before. It is mainly a normal stack class in c++, but the interesting thing here is that it doesn’t have a specific type and by creating an object from that class you can tell the type you want to use in the stack. It’s nothing quite new for me, although there was something new by writing methods from that class outside it.

Here’s the code for the program: https://github.com/powerworr/OOP/blob/master/TemplateClass/stack.cc

New Exam in school

Before few weeks we had an exam, which was incredible easy for me. We needed to make some classes in which we should have had 1 abstract, 1 main, 1 inteface and 2 normal classes which should extend the main and the only difference between them was the interface. Here’s the code for the exam. If you have any questions feel free to contact me and ask them. 🙂

https://github.com/powerworr/TP/tree/master/GreenBelt