{"id":2569,"date":"2021-08-27T00:19:40","date_gmt":"2021-08-27T00:19:40","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2569"},"modified":"2021-09-15T07:21:55","modified_gmt":"2021-09-15T07:21:55","slug":"tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/","title":{"rendered":"Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\" style=\"text-align: justify;\">Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?<\/p>\n<div class=\"row\" style=\"text-align: justify;\">\n<div class=\"col-sm-6\">\n<p>A. Cascading<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. Hierarchical super positioning<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. Inheritance<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. Polymorphism<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-c-inheritance\" style=\"text-align: justify;\"><b>Answer :\u00a0<\/b>C. Inheritance<\/h3>\n<div class=\"subheading\" style=\"text-align: justify;\">\n<h2 id=\"explanation\">Explanation :<\/h2>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li style=\"text-align: justify;\">In object-oriented programming, inheritance is that the mechanism of basing an object or category upon another object (prototypical inheritance) or category (class-based inheritance), holding similar implementation.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0C. Inheritance<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15949],"tags":[16009,15985,16276,2360,2084,2351,2355,2353,16002,16003,2352,16004,16005,16006,16007,16008],"class_list":["post-2569","post","type-post","status-publish","format-standard","hentry","category-programming","tag-inheritance-definition","tag-inheritance-in-java","tag-most-asked-sapient-nitro-interview-questions","tag-oops-concepts","tag-oops-concepts-in-java","tag-oops-interview-questions","tag-oops-interview-questions-and-answers","tag-oops-interview-questions-c","tag-oops-interview-questions-in-java","tag-oops-practical-interview-questions-c","tag-oops-tricky-interview-question","tag-oops-tricky-interview-questions-c","tag-tarun-works-all-night-long-writing-code","tag-tarun-works-all-night-long-writing-code-and-writing-more","tag-tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes","tag-write-a-superclass-which-defines-some-hierarchical-feature"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tarun works all night long writing code and writing more and more classes<\/title>\n<meta name=\"description\" content=\"Tarun works all night long writing code and writing more and more classes for each object - Inheritance - Inheritance is that the mechanism of basing AN object or category upon another object.\" \/>\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\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tarun works all night long writing code and writing more and more classes\" \/>\n<meta property=\"og:description\" content=\"Tarun works all night long writing code and writing more and more classes for each object - Inheritance - Inheritance is that the mechanism of basing AN object or category upon another object.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-27T00:19:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-15T07:21:55+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\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?\",\"datePublished\":\"2021-08-27T00:19:40+00:00\",\"dateModified\":\"2021-09-15T07:21:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/\"},\"wordCount\":114,\"commentCount\":0,\"keywords\":[\"inheritance definition\",\"inheritance in java\",\"Most Asked Sapient Nitro Interview Questions\",\"oops concepts\",\"oops concepts in java\",\"oops interview questions\",\"oops interview questions and answers\",\"oops interview questions c++\",\"oops interview questions in java\",\"oops practical interview questions c#\",\"oops tricky interview question\",\"oops tricky interview questions c#\",\"Tarun works all night long writing code\",\"Tarun works all night long writing code and writing more\",\"Tarun works all night long writing code and writing more and more classes\",\"write a superclass which defines some hierarchical feature\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/\",\"name\":\"Tarun works all night long writing code and writing more and more classes\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-08-27T00:19:40+00:00\",\"dateModified\":\"2021-09-15T07:21:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Tarun works all night long writing code and writing more and more classes for each object - Inheritance - Inheritance is that the mechanism of basing AN object or category upon another object.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\\\/\"]}]},{\"@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":"Tarun works all night long writing code and writing more and more classes","description":"Tarun works all night long writing code and writing more and more classes for each object - Inheritance - Inheritance is that the mechanism of basing AN object or category upon another object.","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\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/","og_locale":"en_US","og_type":"article","og_title":"Tarun works all night long writing code and writing more and more classes","og_description":"Tarun works all night long writing code and writing more and more classes for each object - Inheritance - Inheritance is that the mechanism of basing AN object or category upon another object.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/","og_site_name":"Wikitechy","article_published_time":"2021-08-27T00:19:40+00:00","article_modified_time":"2021-09-15T07:21:55+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\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?","datePublished":"2021-08-27T00:19:40+00:00","dateModified":"2021-09-15T07:21:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/"},"wordCount":114,"commentCount":0,"keywords":["inheritance definition","inheritance in java","Most Asked Sapient Nitro Interview Questions","oops concepts","oops concepts in java","oops interview questions","oops interview questions and answers","oops interview questions c++","oops interview questions in java","oops practical interview questions c#","oops tricky interview question","oops tricky interview questions c#","Tarun works all night long writing code","Tarun works all night long writing code and writing more","Tarun works all night long writing code and writing more and more classes","write a superclass which defines some hierarchical feature"],"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/","name":"Tarun works all night long writing code and writing more and more classes","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-27T00:19:40+00:00","dateModified":"2021-09-15T07:21:55+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Tarun works all night long writing code and writing more and more classes for each object - Inheritance - Inheritance is that the mechanism of basing AN object or category upon another object.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c\/"]}]},{"@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\/2569","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=2569"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2569\/revisions"}],"predecessor-version":[{"id":3842,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2569\/revisions\/3842"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}