COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following are object-oriented languages?i) Javaii)C++iii)Smalltalkiv)CLP
A
i and ii
B
ii and iv
C
i, ii and iii
D
All of the above
Explanation: 

Detailed explanation-1: -Java and C++ use the same primitive data types and many of their keywords are the same, too. Both C++ and Java are object oriented programming languages. This is a modular approach to programming that supports: Inheritance of objects in classes.

Detailed explanation-2: -While languages like C++ and Java are known to be object-oriented languages, they’re not purely object-oriented languages like the Smalltalk language. Object-oriented programming is a programming paradigm that is based on objects that have both data and methods and aims to include modularity and reusability.

Detailed explanation-3: -C is a Procedural Oriented language. It does not support object-oriented programming (OOP) features such as polymorphism, encapsulation, and inheritance programming.

There is 1 question to complete.