ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
i and ii
|
|
ii and iv
|
|
i, ii and iii
|
|
All of the above
|
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.