answersLogoWhite

0

Why assign a pure vitual function to zero any reasone?

Updated: 8/16/2019
User Avatar

Wiki User

15y ago

Best Answer

because u can not create an object.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why assign a pure vitual function to zero any reasone?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A pure virtual function is a virtual function that has?

A pure-virtual function is a function that must be overridden in derived classes. You simply add "=0" to the end of the function declaration. class AbstractClass { public: virtual void DoSomething()=0; // Pure-virtual. };


What is the difference between pure and impure function in computer language?

A pure function is one function that has no side effects or output and doesn't depend on any state beyond its local state's means it can be replaced by any other pure function which returns same result given the same inputs.This property is often referred as referential transparency


How do virtual functions differ from pure virtual functions?

Virtual functions is a function that can be overridden in inheriting class with the same signature (function name, parameters number, parameters types and return type);Pure virtual function is function that does not have implementation and if class has pure virtual function is called abstract. It is not possible to instantiate that class. Some other class must inherit it and define the body for it (implement). In other words class only have function prototype/declaration(signature) and no definition(implementation).


What is Pure tone?

Pure tone is a sound wave whose instantaneous sound sinusoidal function of time. A sound sensation characterized by singleness of pitch.


What is a pure tone?

Pure tone is a sound wave whose instantaneous sound sinusoidal function of time. A sound sensation characterized by singleness of pitch.


What type of function of capacitor in dc power supply?

It filters ac to pure dc


What are the merits and demerits of defining and declaring a pure virtual function in a program?

Merits of defining a pure virtual function: It enforces derived classes to implement the function, ensuring polymorphic behavior. It enables abstract classes to define a common interface. Demerits: It can hinder flexibility as derived classes must implement the function. It may also increase code complexity.


Why starch has a dextrose equivalent of zero?

Starch has a dextrose equivalent of zero because that is the definition of DE 0. a scale was needed for measuring the hydrolysis of starch starting at pure starch to complete 100% dextrose. It was decided to assign zero to pure starch and 100 to 100% dextrose.


What is the function of artries?

Arteries carries pure ie oxygenated blood to all parts of the body.


Pure Virtual Function Call Error On Roller Coaster Tycoon 3?

same thing at me


What is the difference between virtual function and function overriding?

Virtual Functions and Pure Virtual Functions are relevant in the context of class inheritance.Unlike Virtual Functions, Pure Virtual Functions do not require a body. This implies that when a base class defining such a function is inherited, the derived class must implement that function. Furthermore, the base class becomes abstract; meaning you cannot create an instance of the base class even if a body is implemented for the function. You are expected to derive from abstract classes; only the derived classes that implement all the inherited Pure Virtual functions can be instantiated.Here are some examples of Virtual and Pure Virtual function signatures:- Virtual Function: E.g. virtual void myFunction();- Pure Virtual Function: E.g. virtual void myFunction() = 0;


What is the function of the pure?

Being 100% sure on what the outcome willbe. Ex: crossing two tall pea plants that has a pure line means you will always get tall pea plants. If one did not have a pure line then 25% of the pea plants will be small.