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 is/are advantage of using object oriented programming?
A
Code Reusability
B
Can create more than one instance of a class without interference
C
Platform independent
D
All of the mentioned
Explanation: 

Detailed explanation-1: -Oops supports code reusability. Inheritance supports the concept of “reusability”. Oops, can create more than one instance of a class without interference. It can always create multiple instances of a class.

Detailed explanation-2: -Object-oriented programming is ultimately about taking a huge problem and breaking it down to solvable chunks. For each mini-problem, you write a class that does what you require. And then-best of all-you can reuse those classes, which makes it even quicker to solve the next problem.

Detailed explanation-3: -As I have already discussed about it in the article there are various advantages available such as Troubleshooting is easier with the object oriented program language, Code Reusability, Productivity, Data Redundancy, Code Flexibility, Solving problems, Security etc.

Detailed explanation-4: -Which is not feature of OOP in general definitions? Explanation: Duplicate/Redundant data is dependent on programmer and hence can’t be guaranteed by OOP.

There is 1 question to complete.