Posts

Abstract

Data Abstraction  abstract : Deliberation is "addressing the necessary property without addressing the back ground depiction." Reflection permits you to zero in on how the item performs all things being equal. Deliberation gives a summed up perspective on your classes or articles by furnishing you with important data. Amaranth is the way toward concealing the working of an article and showing the data of an item in a reasonable manner. Genuine model Assume you have an article Mobile Phone. Assume you have 3 cell phones: - Nokia 1400 (Features: - Calling, SMS) Nokia 2700 (Features: - Calling, SMS, FM Radio, MP3, Camera) Dark Berry (highlights: - calling, SMS, FM radio, MP3, camera, video recording, email perusing) Conceptual data (fundamental and general data) for the item "cell phone" can call any number and send SMS. " In this way, for cell phone object you will have conceptual class like the accompanying: - Unique Class MobilePhone ...

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...