108k views
0 votes
Which of the following will compile abstract steak?

a) Object-oriented programming language
b) High-level programming language
c) Assembly language
d) Low-level programming language

User Epicurus
by
7.0k points

1 Answer

3 votes

Final answer:

The correct answer is a) Object-oriented programming language. Object-oriented programming languages like Java, C++, and Python support the definition of abstract classes, which are classes designed to be subclassed and cannot be instantiated on their own.

Step-by-step explanation:

The question seems to contain a typo. Assuming the intent is to ask about compiling an abstract class named steak, not abstract steak, we must look for a programming language that supports object-oriented programming (OOP) concepts such as abstract classes.

The correct answer is: a) Object-oriented programming language. Object-oriented programming languages, like Java, C++, and Python, provide mechanisms for defining abstract classes. An abstract class is a class that cannot be instantiated on its own and is intended to be subclassed, where its methods can be implemented. It serves as a blueprint for other classes.

Assembly language and low-level programming languages typically do not provide the abstract data types necessary to define abstract classes, as they are much closer to hardware instruction sets and do not support high-level abstractions. High-level programming languages could potentially support OOP but the term high-level is more general and includes non-OOP languages, so it is less precise than specifying object-oriented programming language.

User Francheska
by
7.2k points