By writing a constructor template you can cover several alternatives of the constructors. But there is also a way to call copy constructor or move constructor when you forwarding an object. In flowing code, we provided a Has-A type class to understand what type of constructor called. In the Has-A… Continue Reading Perfect Forwarding with Template

Virtual is a keyword to declare that the method must be override If all method is virtual and equals 0, the class runs as an interface. Override keywords shows that the virtual method has been overridden. The shared pointer is the smart pointer way to declare a variable as a… Continue Reading All Virtual Methods Are Abstract in CPP