Category Archives: OOP

Object oriented programming section

Decoupling

Someone asked me what can he do with interfaces and abstract classes. Plenty of fun there as we shall see now. I’ll use C++ and C# in this example, and I’ll present this on simple math operations. Interfaces and abstract … Continue reading

Posted in CSharp, OOP, Posts in English, Programming | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Shoot yourself in the foot using c#

I’m drunk, way past the Ballmer peak, and now, I need to explain to you in detail how to shoot yourself in the foot with C#, following the concept “Program to an interface”. You can take me for granted or … Continue reading

Posted in CSharp, General, OOP, Posts in English, Programming | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Namespaces in c++

Disecting namespaces What are namespaces? Why use namespaces? Namespaces are segments of code which contain grouped entities like classes, variable definitions and objects under one name in order to avoid some entities with the same name to collide, which results … Continue reading

Posted in Cpp, OOP, Programming | Tagged , , , , , , , , , , | 1 Comment

Implementing stack in Cpp using classes

This post is about implementing stack data structure inside a class. Stack is based on LIFO structure (Last-In-First-Out), and of course it’s designed to be useful. LIFO means that whatever comes last onto stack must come out first. Stack data … Continue reading

Posted in Cpp, OOP, Posts in English, Programming | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment