<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":2570,"date":"2021-08-27T00:22:04","date_gmt":"2021-08-27T00:22:04","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2570"},"modified":"2021-09-03T07:22:47","modified_gmt":"2021-09-03T07:22:47","slug":"which-of-the-following-are-available-only-in-the-class-hierarchy-chain","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/","title":{"rendered":"Which of the following are available only in the class hierarchy chain ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\">Which of the following are available only in the class hierarchy chain ?<\/p>\n<div class=\"row\">\n<div class=\"col-sm-6\">\n<p>A. Public data members<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. Private data members<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. Protected data members<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. Member functions<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-c-protected-data-members\"><b>Answer :\u00a0<\/b>C. Protected data members<\/h3>\n<div class=\"subheading\">\n<h2 id=\"explanation\">Explanation :<\/h2>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li><b>Public<\/b>\u00a0&#8211; The members declared as Public are accessible from outside the Class through an object of the class.<\/li>\n<li><b>Protected<\/b>\u00a0&#8211; The members declared as Protected are accessible from outside the class but only in a class derived from it.<\/li>\n<li><b>Private<\/b>\u00a0&#8211; These members are only accessible from within the class. No outside Access is allowed.<\/li>\n<li><b>Member Function<\/b>\u00a0&#8211; Member functions are the functions, which have their declaration inside the class definition and works on the data members of the class. The definition of member functions can be inside or outside the definition of class.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0C. Protected data members<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[15949],"tags":[16024,16014,16012,16016,16013,16276,2355,16021,16018,2353,16002,16019,16003,2352,16025,16023,16004,16022,16027,16026,16015,16017,16011,16010,16020],"class_list":["post-2570","post","type-post","status-publish","format-standard","hentry","category-programming","tag-c-oops-scenario-based-interview-questions","tag-class-hierarchy-example","tag-class-hierarchy-in-c","tag-class-hierarchy-in-object-oriented-programming","tag-class-hierarchy-in-oops","tag-most-asked-sapient-nitro-interview-questions","tag-oops-interview-questions-and-answers","tag-oops-interview-questions-and-answers-for-4-years-experienced","tag-oops-interview-questions-and-answers-for-experienced","tag-oops-interview-questions-c","tag-oops-interview-questions-in-java","tag-oops-interview-questions-in-php","tag-oops-practical-interview-questions-c","tag-oops-tricky-interview-question","tag-oops-tricky-interview-question-php","tag-oops-tricky-interview-questions-and-answers-for-experienced-in-c","tag-oops-tricky-interview-questions-c","tag-oops-tricky-interview-questions-java","tag-php-oops-interview-questions-for-5-year-experience","tag-php-oops-interview-questions-with-examples","tag-what-is-class-hierarchy","tag-what-is-class-hierarchy-in-oop","tag-what-is-the-class-hierarchy","tag-which-of-the-following-are-available-in-the-class-hierarchy-chain","tag-which-of-the-following-are-available-only-in-the-class-hierarchy-chain"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Which of the following are available only in the class hierarchy chain ?<\/title>\n<meta name=\"description\" content=\"Which of the following are available only in the class hierarchy chain ? - The members declared as Public are accessible from outside the Class through an object of the 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\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Which of the following are available only in the class hierarchy chain ?\" \/>\n<meta property=\"og:description\" content=\"Which of the following are available only in the class hierarchy chain ? - The members declared as Public are accessible from outside the Class through an object of the class.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-27T00:22:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-03T07:22:47+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\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/\",\"name\":\"Which of the following are available only in the class hierarchy chain ?\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"datePublished\":\"2021-08-27T00:22:04+00:00\",\"dateModified\":\"2021-09-03T07:22:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Which of the following are available only in the class hierarchy chain ? - The members declared as Public are accessible from outside the Class through an object of the class.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/\"]}]},{\"@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\":\"required name=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:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"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":"Which of the following are available only in the class hierarchy chain ?","description":"Which of the following are available only in the class hierarchy chain ? - The members declared as Public are accessible from outside the Class through an object of the 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\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/","og_locale":"en_US","og_type":"article","og_title":"Which of the following are available only in the class hierarchy chain ?","og_description":"Which of the following are available only in the class hierarchy chain ? - The members declared as Public are accessible from outside the Class through an object of the class.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/","og_site_name":"Wikitechy","article_published_time":"2021-08-27T00:22:04+00:00","article_modified_time":"2021-09-03T07:22:47+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":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/","name":"Which of the following are available only in the class hierarchy chain ?","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-27T00:22:04+00:00","dateModified":"2021-09-03T07:22:47+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Which of the following are available only in the class hierarchy chain ? - The members declared as Public are accessible from outside the Class through an object of the class.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/which-of-the-following-are-available-only-in-the-class-hierarchy-chain\/"]}]},{"@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":"required name=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:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","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\/2570","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=2570"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2570\/revisions"}],"predecessor-version":[{"id":2688,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2570\/revisions\/2688"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}