Mastering Java: The Ultimate 2025 All-In-One Quiz to Excel in 'Thinking in Java

Question: 1 / 510

How does C++ support concepts like interfaces and abstract classes compared to Java?

Direct support through language keywords

Only indirect support

C++ supports interfaces and abstract classes through indirect support in the form of abstract base classes and pure virtual functions. While Java directly supports these concepts through language keywords, C++ can still achieve the same functionality through different means. These options may seem incorrect because they either state that C++ does not support these concepts at all (option D) or that it only supports them through a specific method (option A and C). However, B is the most accurate choice as it acknowledges the indirect support provided by C++ for interfaces and abstract classes.

Get further explanation with Examzify DeepDiveBeta

Through standard library functions

Not supported at all

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy