ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Methods and attributes
|
|
Sub-routines and namespace
|
|
Functions and locals
|
|
Callable and nameable
|
Detailed explanation-1: -Procedures in object-oriented programming are known as methods; variables are also known as fields, members, attributes, or properties.
Detailed explanation-2: -The four principles of object-oriented programming are encapsulation, abstraction, inheritance, and polymorphism.
Detailed explanation-3: -The procedures that an object performs are called. methods. Combining data and code in a single object is known as. encapsulation.
Detailed explanation-4: -A three terms used to discribe an object in object oriented programing language are attribute and behavior???? Third is Identity. a object has attributes, behaviours and a identity. identity is the answer.
Detailed explanation-5: -Instance variable ( Object level variable ) Static variable ( Class level variable ) Local variable ( Method level variable ) 26-Jan-2019