Question discussion

Java, unlike C++, does not allow a class to directly inherit from more than one class, mainly to avoid:

169Medium DSSSB TGT Computer Science 0 replies 1 views
0
Java, unlike C++, does not allow a class to directly inherit from more than one class, mainly to avoid:
  • AOverloading conflicts
  • BThe diamond problem arising from multiple inheritance
  • CEncapsulation issues
  • DConstructor chaining
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!