Multilevel inheritancerefers to a mechanism in OO technology where one can inherit from a derived class, thereby making this derived class the base class for the new class. As you can see in below flow diagram C is subclass or child class of B and B is a child class of A. For more ...
62. In which type of inheritance does one class act as a superclass for more than one sub-class?Hybrid inheritance Multiple inheritances Hierarchical inheritance Multilevel inheritanceAnswer: C) Hierarchical inheritanceExplanation:In Hierarchical inheritance one class act as a superclass for more than...
OOPs Concept and Features Objects and Classes in OOPs Constructors and Destructors Access Specifiers Class Members Member Functions Inheritance and its Types Exception Handling Objects and Pointers Memory Allocation and Variable Scope Overloading Inbuilt Classes Basics of PHP Arrays and Functions in PHP ...
OOPs Concept and Features Objects and Classes in OOPs Constructors and Destructors Access Specifiers Class Members Member Functions Inheritance and its Types Exception Handling Objects and Pointers Memory Allocation and Variable Scope Overloading Inbuilt Classes Basics of PHP Arrays and Functions in PHP ...
9. What is virtual inheritance in C++? a) C++ technique to enhance multiple inheritance b) C++ technique to ensure that a private member of the base class can be accessed somehow c) C++ technique to avoid multiple inheritances of classes ...
10. Which of the following is not an OOPS concept in Java? a) Polymorphism b) Inheritance c) Compilation d) Encapsulation View Answer 11. What is not the use of “this” keyword in Java? a) Referring to the instance variable when a local variable has the same name ...
OOPs MCQ (Multiple Choice Questions) with java tutorial, features, history, variables, object, programs, operators, oops concept, array, string, map, math, methods, examples etc.
21. Which of the following OOPs concepts are supported in C++?Inheritance Encapsulation Abstraction PolymorphismOpation:1 and 2 1, 2, and 3 1, 2, and 4 All 1,2,3,4Answer: D) All 1,2,3,4Explanation:C++ supports the following OOPS concept:...
The concepts of OOPs are:Class Object Method Polymorphism Inheritance Encapsulation AbstractionDiscuss this Question 9. Method in Perl is?Time savers User to reuse code w/o retyping the code Collections of statement that perform specific tasks All of these...
80. Does C# support multiple inheritance?Yes NoAnswer: B) NoExplanation:No, C# does not support multiple class inheritance.Discuss this Question 81. Which C# concept has the capability of an object to take number of different forms and hence display behaviour as accordingly?