{"id":380,"date":"2021-07-12T22:45:35","date_gmt":"2021-07-12T22:45:35","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=380"},"modified":"2021-09-14T05:00:58","modified_gmt":"2021-09-14T05:00:58","slug":"a-virtual-function-that-has-no-definition-within-the-base-class-is-called","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/","title":{"rendered":"A virtual function that has no definition within the base class is called ?"},"content":{"rendered":"<h3 id=\"a-virtual-function-that-has-no-definition-within-the-base-class-is-called\" class=\"color-pink\" style=\"text-align: justify;\">A virtual function that has no definition within the base class is called ?<\/h3>\n<div class=\"row\" style=\"text-align: justify;\">\n<div class=\"col-sm-6\">\n<p>A. Pure virtual function<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. Pure static function<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. Pure Const function<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. Virtual Function<\/p>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Answer :\u00a0<\/b>A.\u00a0<a href=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/what-is-pure-virtual-function-in-cpp\/\" target=\"_blank\" rel=\"noopener\">Pure virtual function<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Answer : A. Pure virtual function<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2080],"tags":[2382,195,2384,491,360,368,211,2378,199,198,363,205,2117,220,2381,222,2122,212,2387,2120,2121,710,207,2377,366,204,217,2116,2296,2386,2297,2375,2379,16277,2123,210,200,2118,2380,2376,2305,2290,2295,2304,2370,2383,2388,2389,2390,2385,968,216,2119],"class_list":["post-380","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-abstract-class-in-c-with-simple-example","tag-accenture-interview-questions-and-answers","tag-advantages-of-virtual-function-in-c","tag-applied-materials-interview-questions-and-answers","tag-atos-interview-questions-and-answers","tag-bmc-software-interview-questions-and-answers","tag-bosch-india-software-interview-questions-and-answers","tag-c-virtual-function-0","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-einfochips-interview-questions-and-answers","tag-electronics-arts-inc-interview-questions-and-answers","tag-explain-pure-virtual-function-with-example-program","tag-flipkart-interview-questions-and-answers","tag-harman-international-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-interview-questions-on-virtual-functions-in-c","tag-larsen-toubro-interview-questions-and-answers","tag-mathworks-india-private-limited-interview-questions-and-answers","tag-mavenir-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-need-of-virtual-function-in-c","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-peoplestrong-interview-questions-and-answers","tag-philips-software-centre-pvt-ltd-interview-questions-and-answers","tag-pure-virtual-function","tag-pure-virtual-function-c-example","tag-pure-virtual-function-call","tag-pure-virtual-function-in-c","tag-pure-virtual-function-in-c-with-example-program","tag-sapient-technical-and-hr-interview-questions","tag-srm-technologies-interview-questions-and-answers","tag-symphony-teleca-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-tecnotree-interview-questions-and-answers","tag-use-of-pure-virtual-function-in-c","tag-use-of-virtual-function-in-c","tag-virtual-and-pure-virtual-function","tag-virtual-class-in-c","tag-virtual-function","tag-virtual-function-and-pure-virtual-function","tag-virtual-function-in-c","tag-virtual-function-in-c-with-example","tag-what-is-a-virtual-class","tag-what-is-a-virtual-class-in-c","tag-what-is-virtual-function-in-c","tag-why-we-need-pure-virtual-function-in-c","tag-wipro-infotech-interview-questions-and-answers","tag-wipro-interview-questions-and-answers","tag-yash-technologies-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A virtual function that has no definition within the base class is called ?<\/title>\n<meta name=\"description\" content=\"A virtual function that has no definition within the base class is called ? - A virtual function will become pure virtual function when you append =0 at the end of declaration of virtual function.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A virtual function that has no definition within the base class is called ?\" \/>\n<meta property=\"og:description\" content=\"A virtual function that has no definition within the base class is called ? - A virtual function will become pure virtual function when you append =0 at the end of declaration of virtual function.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T22:45:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T05:00:58+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"A virtual function that has no definition within the base class is called ?\",\"datePublished\":\"2021-07-12T22:45:35+00:00\",\"dateModified\":\"2021-09-14T05:00:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/\"},\"wordCount\":46,\"commentCount\":0,\"keywords\":[\"abstract class in c++ with simple example\",\"Accenture interview questions and answers\",\"advantages of virtual function in c++\",\"Applied Materials interview questions and answers\",\"Atos interview questions and answers\",\"BMC Software interview questions and answers\",\"Bosch India Software interview questions and answers\",\"c++ virtual function = 0\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"eInfochips interview questions and answers\",\"Electronics Arts Inc interview questions and answers\",\"explain pure virtual function with example program\",\"Flipkart interview questions and answers\",\"Harman International interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"interview questions on virtual functions in c++\",\"Larsen &amp; Toubro interview questions and answers\",\"Mathworks India Private Limited interview questions and answers\",\"Mavenir interview questions and answers\",\"Mphasis interview questions and answers\",\"need of virtual function in c++\",\"NetApp interview questions and answers\",\"Oracle Corporation interview questions and answers\",\"PeopleStrong interview questions and answers\",\"Philips Software Centre Pvt Ltd interview questions and answers\",\"pure virtual function\",\"pure virtual function c++ example\",\"pure virtual function call\",\"pure virtual function in c++\",\"pure virtual function in c++ with example program\",\"Sapient Technical and HR Interview Questions\",\"SRM Technologies interview questions and answers\",\"Symphony Teleca interview questions and answers\",\"Tech Mahindra interview questions and answers\",\"Tecnotree interview questions and answers\",\"use of pure virtual function in c++\",\"use of virtual function in c++\",\"virtual and pure virtual function\",\"virtual class in c++\",\"virtual function\",\"virtual function and pure virtual function\",\"Virtual Function in C++\",\"virtual function in c++ with example\",\"What is a virtual class\",\"What is a virtual class in C++\",\"What is virtual function in C\",\"why we need pure virtual function in c++\",\"Wipro Infotech interview questions and answers\",\"Wipro interview questions and answers\",\"Yash Technologies interview questions and answers\"],\"articleSection\":[\"C++\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/\",\"name\":\"A virtual function that has no definition within the base class is called ?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-07-12T22:45:35+00:00\",\"dateModified\":\"2021-09-14T05:00:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"A virtual function that has no definition within the base class is called ? - A virtual function will become pure virtual function when you append =0 at the end of declaration of virtual function.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A virtual function that has no definition within the base class is called ?","description":"A virtual function that has no definition within the base class is called ? - A virtual function will become pure virtual function when you append =0 at the end of declaration of virtual function.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/","og_locale":"en_US","og_type":"article","og_title":"A virtual function that has no definition within the base class is called ?","og_description":"A virtual function that has no definition within the base class is called ? - A virtual function will become pure virtual function when you append =0 at the end of declaration of virtual function.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T22:45:35+00:00","article_modified_time":"2021-09-14T05:00:58+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"A virtual function that has no definition within the base class is called ?","datePublished":"2021-07-12T22:45:35+00:00","dateModified":"2021-09-14T05:00:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/"},"wordCount":46,"commentCount":0,"keywords":["abstract class in c++ with simple example","Accenture interview questions and answers","advantages of virtual function in c++","Applied Materials interview questions and answers","Atos interview questions and answers","BMC Software interview questions and answers","Bosch India Software interview questions and answers","c++ virtual function = 0","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","Chetu interview questions and answers","Ciena Corporation interview questions and answers","Dell International Services India Pvt Ltd interview questions and answers","eInfochips interview questions and answers","Electronics Arts Inc interview questions and answers","explain pure virtual function with example program","Flipkart interview questions and answers","Harman International interview questions and answers","Indecomm Global Services interview questions and answers","interview questions on virtual functions in c++","Larsen &amp; Toubro interview questions and answers","Mathworks India Private Limited interview questions and answers","Mavenir interview questions and answers","Mphasis interview questions and answers","need of virtual function in c++","NetApp interview questions and answers","Oracle Corporation interview questions and answers","PeopleStrong interview questions and answers","Philips Software Centre Pvt Ltd interview questions and answers","pure virtual function","pure virtual function c++ example","pure virtual function call","pure virtual function in c++","pure virtual function in c++ with example program","Sapient Technical and HR Interview Questions","SRM Technologies interview questions and answers","Symphony Teleca interview questions and answers","Tech Mahindra interview questions and answers","Tecnotree interview questions and answers","use of pure virtual function in c++","use of virtual function in c++","virtual and pure virtual function","virtual class in c++","virtual function","virtual function and pure virtual function","Virtual Function in C++","virtual function in c++ with example","What is a virtual class","What is a virtual class in C++","What is virtual function in C","why we need pure virtual function in c++","Wipro Infotech interview questions and answers","Wipro interview questions and answers","Yash Technologies interview questions and answers"],"articleSection":["C++"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/","name":"A virtual function that has no definition within the base class is called ?","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-12T22:45:35+00:00","dateModified":"2021-09-14T05:00:58+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"A virtual function that has no definition within the base class is called ? - A virtual function will become pure virtual function when you append =0 at the end of declaration of virtual function.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/cpp\/a-virtual-function-that-has-no-definition-within-the-base-class-is-called\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=380"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":3611,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/380\/revisions\/3611"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}