COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A big advantage of OOP over traditional programming is ____
A
The objects are all declared Public
B
The convenience of giving all objects in a project the same name
C
The ability to reuse classes
D
None of the above
Explanation: 

Detailed explanation-1: -Objects are self-contained, and each bit of functionality does its own thing while leaving the other bits alone. Also, this modularity allows an IT team to work on multiple objects simultaneously while minimizing the chance that one person might duplicate someone else’s functionality.

Detailed explanation-2: -Answer: Object oriented programing is based on real objects while a traditional progrming also called process oriented programing is based more on executing a logic.

Detailed explanation-3: -Data Redundancy So the data redundancy is one of the greatest advantages of OOP. If a user wants a similar functionality in multiple classes, he/she can go ahead by writing common class definitions for similar functionalities and inherit them.

Detailed explanation-4: -Modular Architecture: Object-oriented systems have a natural structure for modular design: objects, subsystems, framework, and so on. Thus, OOD systems are easier to modify. OOD systems can be altered in fundamental ways without ever breaking up since changes are neatly encapsulated.

There is 1 question to complete.