COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In object oriented programming what are the generally used names of procedures and variables within an object?
A
Methods and attributes
B
Sub-routines and namespace
C
Functions and locals
D
Callable and nameable
Explanation: 

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

There is 1 question to complete.