Q16.Marks: +2.0UGC NET Paper 2: Computer Science 18th June 2024 Shift 1 (Cancelled)
Multiple Inheritance is permitted directly in.....
A. C++
B. Java
C. Python
D. VB.NET
E. BASIC
Choose the most appropriate answer from the options given below :
1.A and B Only
2.A and C Only✓ Correct
3.B and D Only
4.A, C and E Only
Solution
The correct answer is Option 2) A and C Only.
Key Points
Multiple Inheritance is a feature of some object-oriented programming languages in which a class can inherit behaviors and features from more than one parent class.
C++ supports multiple inheritance directly. A class in C++ can be derived from more than one base class.
Python also supports multiple inheritance directly. A class in Python can inherit from multiple classes, allowing it to combine behaviors and attributes from those classes.
Additional Information
Java does not support multiple inheritance directly through classes. Instead, Java uses interfaces to achieve multiple inheritance of type.
VB.NET (Visual Basic .NET) does not support multiple inheritance through classes. It uses interfaces for this purpose.
BASIC is a family of high-level programming languages and does not inherently support multiple inheritance.