Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 06-04-2016, 12:23 AM   #1
Shivangi Panwar
Registered User
 
Join Date: Nov 2015
Posts: 144
What is pure virtual function?

What is pure virtual function?
Shivangi Panwar is offline   Reply With Quote

Old 06-09-2016, 03:43 AM   #2
Paavni
Registered User
 
Join Date: Jun 2016
Posts: 20
A pure virtual function is implemented by classes which are derived from a Abstract class.
Pure virtual Functions are virtual functions with no definition. They start with virtual keyword and ends with = 0.
Here is the syntax for a pure virtual function,
virtual void f() = 0;
Paavni is offline   Reply With Quote
Old 06-10-2016, 01:07 AM   #3
sumita
Registered User
 
Join Date: Jun 2016
Posts: 59
The pure virtual function or virtual method that is required to be implemented by a derived class is not abstract.
sumita is offline   Reply With Quote
Old 06-13-2016, 12:57 AM   #4
johnbrent
Registered User
 
Join Date: Feb 2016
Posts: 405
A virtual function for which we don’t have implementation, we only declare it. A pure virtual function is declared by assigning 0 in declaration.
class Test
{
// Data members of class
public:
// Pure Virtual Function
virtual void show() = 0;

/* Other members */
};
johnbrent is offline   Reply With Quote
Old 03-01-2018, 09:50 PM   #5
adityadev
Registered User
 
Join Date: Jul 2017
Posts: 106
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
adityadev is offline   Reply With Quote
Old 03-01-2018, 10:08 PM   #6
agsenterprises
Registered User
 
Join Date: Jul 2017
Posts: 313
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
agsenterprises is offline   Reply With Quote
Old 03-01-2018, 10:10 PM   #7
airvente
Registered User
 
Join Date: Aug 2017
Posts: 291
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
airvente is offline   Reply With Quote
Old 03-01-2018, 10:11 PM   #8
ajpowercenter
Registered User
 
Join Date: Jul 2017
Posts: 319
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
ajpowercenter is offline   Reply With Quote
Old 03-01-2018, 10:13 PM   #9
areducation
Registered User
 
Join Date: Aug 2017
Posts: 261
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
areducation is offline   Reply With Quote
Old 03-01-2018, 10:14 PM   #10
centuryassociat
Registered User
 
Join Date: Aug 2017
Posts: 260
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
centuryassociat is offline   Reply With Quote
Old 03-01-2018, 10:16 PM   #11
chennaisport
Registered User
 
Join Date: Jan 2017
Posts: 582
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
chennaisport is offline   Reply With Quote
Old 03-01-2018, 10:18 PM   #12
crystalsolution
Registered User
 
Join Date: Aug 2017
Posts: 261
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
crystalsolution is offline   Reply With Quote
Old 03-01-2018, 10:19 PM   #13
dineshservice
Registered User
 
Join Date: Jan 2017
Posts: 481
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
dineshservice is offline   Reply With Quote
Old 03-01-2018, 10:20 PM   #14
firstexpres3
Registered User
 
Join Date: May 2017
Posts: 337
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
firstexpres3 is offline   Reply With Quote
Old 03-01-2018, 10:40 PM   #15
foodmachinex
Registered User
 
Join Date: Jun 2017
Posts: 302
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class if the derived class is not abstract. Classes containing pure virtual methods are termed "abstract" and they cannot be instantiated directly.
foodmachinex is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google unveils virtual reality headset and joystick bolhaw General Discussion 0 05-19-2016 09:19 AM
Facebook has a camera dedicated to virtual reality bolhaw General Discussion 0 04-13-2016 05:31 AM
virtual shop Preksh Post your ad here 0 09-04-2015 01:01 AM
What is a Virtual Domain ? noahwilson Hosting Discussion 1 09-01-2014 11:50 AM
Feeding the search engines endless thirst - Virtual Assistance and You Blog bobo.cx Search Engine Optimization 3 03-24-2014 10:44 PM


All times are GMT -7. The time now is 05:36 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.