DATA ABSTRACTION IN C PLUS PLUS
3.3 Pure Virtual Function and Abstract Superclass An unadulterated virtual capacity is determined by putting "= 0" (called unadulterated specifier) in its announcement. For instance, virtual twofold getArea() = 0;/Pure virtual capacity, to be executed by subclass An unadulterated virtual capacity ordinarily has no usage body, in light of the fact that the class doesn't have the foggiest idea how to actualize the body. A class containing at least one unadulterated virtual capacity is called a theoretical class. You can't make cases from a theoretical class, since its definition might be deficient. Theoretical class is intended to be a superclass. To utilize a theoretical class, you need to infer a subclass, abrogate and give execution to all the unadulterated virtual capacities. You would then be able to make examples from the solid subclass. C++ permits usage for unadulterated virtual capacity. For this situation, the =0 just make the class unique. As the o...