Why Object creation of abstract class is not possible.
In my opinion, It's bcz of the pure virtual function. Suppose object will be created for abstract class. Then how it'll deal with that pure virtual function.Most people says pure virtual function doesn't have any body but in reality it can have body.But once getting a pure virtual func. our compiler will deny to create object.The invention of pure virtual function is only to create abstract class / Interface which prevents object creation.
Is there anything else I'm missing? Is there any hidden thing lies inside the object/VTABLE/VPTR/memory ...etc.
Ah. Right... I understand what you mean now (I think we got a little lost in translation) :)
Yes, in the case where a pure-virtual has an implementation, it is still abstract and cannot be called because
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Software development teams often use in-memory caches to improve performance. They want to speed up access to, or reduce load on, a backing store (database, file system, etc.) by keeping some or all of the data in memory.
You should implement a …
Dependencies in Software Design
In software development, the idea of dependencies (http://en.wikipedia.org/wiki/Coupling_%28computer_programming%29) is an issue of some importance. This article seeks to explain what dependencies are and where they …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…