Why do we need virtual functions in C++?

Here is how I understood not just what virtual functions are, but why they’re required: Let’s say you have these two classes: In your main function: So far so good, right? Animals eat generic food, cats eat rats, all without virtual. Let’s change it a little now so that eat() is called via an intermediate function (a trivial function just … Read more

What is Xpenology? Is it Linux related thing?

Xpenology isn’t a linux OS like Ubuntu or other common distribution. It’s a bootloader for synologys operating system DSM, which they use on their NAS devices. DSM is running on a custom linux version developed by Synology, so it’s also not real compareable to desktop/server distributions in a direct way. Its optimized for running on … Read more

Discord music bot not working

Ok, I have two solutions for you. This first one is a block of code I have used and I can say it works from experience. It requires ffmpeg, opusscript and ytdl: This second option which I would highly recommend is a node module that has many more advanced features that are hard to implement such as: musichelp [command]: … Read more