COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
WHAT IS OBJECT ORIENTED PROGRAMMING
A
this means that control is passed downwards only through the hierarchy
B
the object have relationships with one another
C
in the top-down design model, programs are drawn as rectangles
D
top-down design means that the whole program is broken down into smaller sections that are known as modules
E
beneficial for organizing and coding computer programs which employ a hierarchy of modules, this means that control is passed downwards
Explanation: 

Detailed explanation-1: -Object oriented programming generally support 4 types of relationships that are: inheritance, association, composition and aggregation. All these relationship is based on “is a” relationship, “has-a” relationship and “part-of” relationship. In this article we will understand all these relationships.

Detailed explanation-2: -In object-oriented general software design, the relationship between one object’s functionality and another’s is known as an association. Note that an association between two objects is not the same thing as inheritance between two classes.

Detailed explanation-3: -In systems analysis, a one-to-many relationship is a type of cardinality that refers to the relationship between two entities (see also entity–relationship model) A and B in which an element of A may be linked to many elements of B, but a member of B is linked to only one element of A.

Detailed explanation-4: -The relationship between objects defines how these objects will interact or collaborate to perform an operation in an application. The relationship between objects defines how these objects will interact or collaborate to perform an operation in an application.

Detailed explanation-5: -In simple words, has-a relationship in an object is called a member field of an object. Multiple has-a relationships will combine to form a possessive hierarchy.

There is 1 question to complete.