Using JetBrains ReSharper with a StyleCop plugin

In September I wrote a short article about writing a clean code. I told you that it is a good habit to implement programs with a one and good style. Today I am going to wrtie something about a special tools which are very useful during programming. First of all, you need to have a … Continue reading Using JetBrains ReSharper with a StyleCop plugin

Virtual methods & overriding in C++

A few months ago my friend asked me if I could explain a virtual methods in C++. How to use them, how to implement and why are these so important when programming? Today I am going to answer all of these questions. First of all, we use virtual methods during inheritance. We create a pointer of base … Continue reading Virtual methods & overriding in C++

C++ Inheritance

While using OOP (Object Oriented Programming) we have to operate on classes, so we create our own class, for example class CFurniture: And then we create another class, which is strictly connected with CFurniture, e.g. CTable: In main() we are going to call the SetType() (to set) and GetType() (to get type) methods: You can see … Continue reading C++ Inheritance