View RSS Feed

Most Popular Blogs

  1. Polymorphism in C++

    by , 03-26-2013 at 10:08 AM
    One of the important properties of derived classes is that a pointer to a derived class is type-compatible with a pointer to its base class. Polymorphism is the art of taking benefit of this simple but omnipotent and uncertain feature, that brings Object Oriented Methodologies to its full potential.
    Example for simple polymorphism
    #include <iostream>
    using namespace std;
    class myPolyCls {
        int width, height;
    Tags: 1'", 1axa7a? Add / Edit Tags