{"id":368,"date":"2021-07-12T22:19:30","date_gmt":"2021-07-12T22:19:30","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=368"},"modified":"2021-09-14T05:15:13","modified_gmt":"2021-09-14T05:15:13","slug":"state-whether-the-following-statements-about-inheritance-are-true-or-false","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/","title":{"rendered":"State whether the following statements about inheritance are True or False."},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\" style=\"text-align: justify;\">State whether the following statements about inheritance are True or False.<br \/>\n<b>I .<\/b>\u00a0A public member of a class can be accessed by its own objects using the dot operator.<br \/>\n<b>II .<\/b>\u00a0While inheriting, the private members of the base class will never become the members of its derived class.<\/p>\n<div class=\"row\" style=\"text-align: justify;\">\n<div class=\"col-sm-6\">\n<p>A. True, False<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. False, True<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. True, True<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. False, False<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-c-true-true\" style=\"text-align: justify;\"><b>Answer :\u00a0<\/b>C. True, True<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Answer : C. True, True<\/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":[195,2280,491,360,368,211,2281,2270,2269,199,198,363,205,2117,220,222,2122,2286,212,2275,2285,2271,2284,2289,2277,2273,2120,2121,710,2272,2283,207,366,204,217,2116,2288,2278,2282,2279,2276,16277,2123,210,200,2118,2274,2287,968,216,2119],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-accenture-interview-questions-and-answers","tag-an-object-of-a-derived-class-cannot-access-private-members-of-base-class","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-inheritance-intermcq-on-inheritance-in-c","tag-c-inheritance-practice-questions","tag-c-programming-exercises-inheritance","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-in-oop","tag-indecomm-global-services-interview-questions-and-answers","tag-inheritance-and-polymorphism-quiz","tag-inheritance-in-c-questions-and-answers","tag-inheritance-in-c-with-example-program","tag-inheritance-mcq-in-java","tag-inheritance-output-questions-in-c","tag-inheritance-questions-and-answers","tag-interview-questions-on-inheritance-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-mcq-on-inheritance-in-c-with-answers","tag-mcq-on-virtual-function-in-c","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-practical-questions-on-inheritance-in-c","tag-programming-exercises-on-inheritance","tag-programming-questions-on-inheritance-in-c","tag-programs-on-inheritance-in-c","tag-questions-on-inheritance-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-types-of-inheritance-in-c","tag-which-of-the-following-is-not-a-type-of-inheritance","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>State whether the following statements about inheritance are True or False.<\/title>\n<meta name=\"description\" content=\"State whether the following statements about inheritance are True or False - A public member of a class can be accessed by its own objects using the dot operator\" \/>\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\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"State whether the following statements about inheritance are True or False.\" \/>\n<meta property=\"og:description\" content=\"State whether the following statements about inheritance are True or False - A public member of a class can be accessed by its own objects using the dot operator\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T22:19:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T05:15:13+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\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"State whether the following statements about inheritance are True or False.\",\"datePublished\":\"2021-07-12T22:19:30+00:00\",\"dateModified\":\"2021-09-14T05:15:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/\"},\"wordCount\":75,\"commentCount\":0,\"keywords\":[\"Accenture interview questions and answers\",\"an object of a derived class cannot access private members of base class\",\"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# inheritance intermcq on inheritance in c++\",\"c++ inheritance practice questions\",\"c++ programming exercises inheritance\",\"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\",\"in oop\",\"Indecomm Global Services interview questions and answers\",\"inheritance and polymorphism quiz\",\"inheritance in c++ questions and answers\",\"inheritance in c++ with example program\",\"inheritance mcq in java\",\"inheritance output questions in c++\",\"inheritance questions and answers\",\"interview questions on inheritance in c++\",\"Larsen &amp; Toubro interview questions and answers\",\"Mathworks India Private Limited interview questions and answers\",\"Mavenir interview questions and answers\",\"mcq on inheritance in c++ with answers\",\"mcq on virtual function in c++\",\"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\",\"practical questions on inheritance in c++\",\"programming exercises on inheritance\",\"programming questions on inheritance in c++\",\"programs on inheritance in c++\",\"questions on inheritance 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\",\"types of inheritance in c++\",\"which of the following is not a type of inheritance?\",\"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\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/\",\"name\":\"State whether the following statements about inheritance are True or False.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-07-12T22:19:30+00:00\",\"dateModified\":\"2021-09-14T05:15:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"State whether the following statements about inheritance are True or False - A public member of a class can be accessed by its own objects using the dot operator\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/state-whether-the-following-statements-about-inheritance-are-true-or-false\\\/\"]}]},{\"@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":"State whether the following statements about inheritance are True or False.","description":"State whether the following statements about inheritance are True or False - A public member of a class can be accessed by its own objects using the dot operator","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\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/","og_locale":"en_US","og_type":"article","og_title":"State whether the following statements about inheritance are True or False.","og_description":"State whether the following statements about inheritance are True or False - A public member of a class can be accessed by its own objects using the dot operator","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T22:19:30+00:00","article_modified_time":"2021-09-14T05:15:13+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\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"State whether the following statements about inheritance are True or False.","datePublished":"2021-07-12T22:19:30+00:00","dateModified":"2021-09-14T05:15:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/"},"wordCount":75,"commentCount":0,"keywords":["Accenture interview questions and answers","an object of a derived class cannot access private members of base class","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# inheritance intermcq on inheritance in c++","c++ inheritance practice questions","c++ programming exercises inheritance","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","in oop","Indecomm Global Services interview questions and answers","inheritance and polymorphism quiz","inheritance in c++ questions and answers","inheritance in c++ with example program","inheritance mcq in java","inheritance output questions in c++","inheritance questions and answers","interview questions on inheritance in c++","Larsen &amp; Toubro interview questions and answers","Mathworks India Private Limited interview questions and answers","Mavenir interview questions and answers","mcq on inheritance in c++ with answers","mcq on virtual function in c++","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","practical questions on inheritance in c++","programming exercises on inheritance","programming questions on inheritance in c++","programs on inheritance in c++","questions on inheritance 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","types of inheritance in c++","which of the following is not a type of inheritance?","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\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/","name":"State whether the following statements about inheritance are True or False.","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-12T22:19:30+00:00","dateModified":"2021-09-14T05:15:13+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"State whether the following statements about inheritance are True or False - A public member of a class can be accessed by its own objects using the dot operator","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/cpp\/state-whether-the-following-statements-about-inheritance-are-true-or-false\/"]}]},{"@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\/368","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=368"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":3623,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/368\/revisions\/3623"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}