{"id":386,"date":"2021-07-12T22:54:00","date_gmt":"2021-07-12T22:54:00","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=386"},"modified":"2021-09-14T04:57:16","modified_gmt":"2021-09-14T04:57:16","slug":"find-the-wrong-statement-about-abstract-class","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/","title":{"rendered":"Find the wrong statement about Abstract Class ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h3 id=\"find-the-wrong-statement-about-abstract-class\" class=\"color-pink\" style=\"text-align: justify;\">Find the wrong statement about Abstract Class ?<\/h3>\n<div class=\"row\" style=\"text-align: justify;\">\n<div class=\"col-sm-6\">\n<p>A. We can\u2019t create its objects<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. We can\u2019t create pointers to an abstract class<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. It contains at least one pure virtual function<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. We can create references to an abstract class<\/p>\n<\/div>\n<\/div>\n<h3 id=\"answer-b-we-cant-create-pointers-to-an-abstract-class\" style=\"text-align: justify;\"><b>Answer :\u00a0<\/b>B. We can\u2019t create pointers to an abstract class<\/h3>\n<\/div>\n<\/div>\n<div class=\"subheading\" style=\"text-align: justify;\">\n<h2 id=\"explanation\">Explanation :<\/h2>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Abstract Class is a class which contains atleast one Pure Virtual function.<\/li>\n<li>An abstract class is a class that is designed to be specifically used as a base class.<\/li>\n<li>It is used to provide an Interface for its sub classes.<\/li>\n<li>Classes inheriting an Abstract Class must provide definition to the pure virtual function, otherwise they will also become abstract class.<\/li>\n<li>You declare a pure virtual function by using a\u00a0<b>pure specifier (= 0)<\/b>\u00a0in the declaration of a virtual member function in the class declaration.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"subheading\" style=\"text-align: justify;\">\n<h2 id=\"example\" class=\"color-green\">Example<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-cpp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-cpp code-embed-code\">class AB {<br\/>public:<br\/>  virtual void f() = 0;<br\/>};<\/code><\/pre> <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : B. We can\u2019t create pointers to an abstract class<\/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":[2410,195,491,360,368,211,2413,2414,199,198,363,205,2117,220,222,2122,212,2412,2406,2120,2121,710,207,366,204,217,2116,2416,2375,16277,2123,210,200,2118,2411,2376,2415,2371,2417,2370,2409,2407,2408,2405,2402,2403,2404,968,216,2119],"class_list":["post-386","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-abstract-class-in-c","tag-accenture-interview-questions-and-answers","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-abstract-class","tag-c-abstract-class-constructor","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-flipkart-interview-questions-and-answers","tag-harman-international-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-interface-and-abstract-class-in-c","tag-interface-is-partial-abstract-class-true-or-false","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-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-class-in-c","tag-pure-virtual-function-in-c","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-abstract-class-in-c","tag-use-of-virtual-function-in-c","tag-uses-of-abstract-class-in-c","tag-virtual-base-class-in-c","tag-virtual-destructor-in-c","tag-virtual-function-in-c","tag-we-can-declare-abstract-method-outside-of-abstract-class-mcq","tag-we-can-declare-abstract-method-outside-of-abstract-class-true-or-false","tag-which-of-the-following-is-true-about-abstract-classes","tag-which-of-the-following-is-used-to-make-an-abstract-class-mcq","tag-which-of-the-following-statement-is-false-about-abstract-classes","tag-which-statement-is-incorrect-with-respect-to-abstract-class","tag-which-statement-is-incorrect-with-respect-to-abstract-class-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>Find the wrong statement about Abstract Class ? - C++<\/title>\n<meta name=\"description\" content=\"Find the wrong statement about Abstract Class ? - Abstract Class is a class which contains atleast one Pure Virtual function. An abstract class is a class that is designed to be specifically used as a base class\" \/>\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\/find-the-wrong-statement-about-abstract-class\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Find the wrong statement about Abstract Class ? - C++\" \/>\n<meta property=\"og:description\" content=\"Find the wrong statement about Abstract Class ? - Abstract Class is a class which contains atleast one Pure Virtual function. An abstract class is a class that is designed to be specifically used as a base class\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T22:54:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T04:57:16+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\\\/find-the-wrong-statement-about-abstract-class\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/find-the-wrong-statement-about-abstract-class\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"Find the wrong statement about Abstract Class ?\",\"datePublished\":\"2021-07-12T22:54:00+00:00\",\"dateModified\":\"2021-09-14T04:57:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/find-the-wrong-statement-about-abstract-class\\\/\"},\"wordCount\":167,\"commentCount\":0,\"keywords\":[\"abstract class in c++\",\"Accenture interview questions and answers\",\"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++ abstract class\",\"c++ abstract class constructor\",\"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\",\"Flipkart interview questions and answers\",\"Harman International interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"interface and abstract class in c++\",\"interface is partial abstract class true or false\",\"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\",\"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 class in c++\",\"pure virtual function in c++\",\"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 abstract class in c++\",\"use of virtual function in c++\",\"uses of abstract class in c++\",\"virtual base class in c++\",\"virtual destructor in c++\",\"Virtual Function in C++\",\"we can declare abstract method outside of abstract class mcq\",\"we can declare abstract method outside of abstract class true or false\",\"which of the following is true about abstract classes\",\"which of the following is used to make an abstract class mcq\",\"which of the following statement is false about abstract classes\",\"which statement is incorrect with respect to abstract class\",\"which statement is incorrect with respect to abstract class 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\\\/find-the-wrong-statement-about-abstract-class\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/find-the-wrong-statement-about-abstract-class\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/find-the-wrong-statement-about-abstract-class\\\/\",\"name\":\"Find the wrong statement about Abstract Class ? - C++\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-07-12T22:54:00+00:00\",\"dateModified\":\"2021-09-14T04:57:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Find the wrong statement about Abstract Class ? - Abstract Class is a class which contains atleast one Pure Virtual function. An abstract class is a class that is designed to be specifically used as a base class\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/find-the-wrong-statement-about-abstract-class\\\/\"]}]},{\"@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":"Find the wrong statement about Abstract Class ? - C++","description":"Find the wrong statement about Abstract Class ? - Abstract Class is a class which contains atleast one Pure Virtual function. An abstract class is a class that is designed to be specifically used as a base class","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\/find-the-wrong-statement-about-abstract-class\/","og_locale":"en_US","og_type":"article","og_title":"Find the wrong statement about Abstract Class ? - C++","og_description":"Find the wrong statement about Abstract Class ? - Abstract Class is a class which contains atleast one Pure Virtual function. An abstract class is a class that is designed to be specifically used as a base class","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T22:54:00+00:00","article_modified_time":"2021-09-14T04:57:16+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\/find-the-wrong-statement-about-abstract-class\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"Find the wrong statement about Abstract Class ?","datePublished":"2021-07-12T22:54:00+00:00","dateModified":"2021-09-14T04:57:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/"},"wordCount":167,"commentCount":0,"keywords":["abstract class in c++","Accenture interview questions and answers","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++ abstract class","c++ abstract class constructor","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","Flipkart interview questions and answers","Harman International interview questions and answers","Indecomm Global Services interview questions and answers","interface and abstract class in c++","interface is partial abstract class true or false","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","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 class in c++","pure virtual function in c++","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 abstract class in c++","use of virtual function in c++","uses of abstract class in c++","virtual base class in c++","virtual destructor in c++","Virtual Function in C++","we can declare abstract method outside of abstract class mcq","we can declare abstract method outside of abstract class true or false","which of the following is true about abstract classes","which of the following is used to make an abstract class mcq","which of the following statement is false about abstract classes","which statement is incorrect with respect to abstract class","which statement is incorrect with respect to abstract class 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\/find-the-wrong-statement-about-abstract-class\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/","name":"Find the wrong statement about Abstract Class ? - C++","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-12T22:54:00+00:00","dateModified":"2021-09-14T04:57:16+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Find the wrong statement about Abstract Class ? - Abstract Class is a class which contains atleast one Pure Virtual function. An abstract class is a class that is designed to be specifically used as a base class","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/cpp\/find-the-wrong-statement-about-abstract-class\/"]}]},{"@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\/386","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=386"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":3607,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/386\/revisions\/3607"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}