This topic contains a solution. Click here to go to the answer

Author Question: Write a brief note on object-oriented programming languages. What will be an ideal ... (Read 76 times)

ahriuashd

  • Hero Member
  • *****
  • Posts: 535
Write a brief note on object-oriented programming languages.
 
  What will be an ideal response?

Question 2

Compare and contrast compilers and interpreters.
 
  What will be an ideal response?



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

s.meritte

  • Sr. Member
  • ****
  • Posts: 306
Answer to Question 1

Object-oriented languages are the most recent in the progression of high-level programming languages and are extremely popular with application developers. Object-oriented languages use common modules (called objects), which combine properties and behaviors to define the relevant system components. An example of an object would be a specific student who has a name, an address, date of birth (i.e., the properties), but can also perform certain operations, such as register for a class (the behaviors). If an object-oriented programming language is being used, it enables the design and implementation of the objects to happen quickly and simultaneously, as oftentimes, preexisting objects can be reused or adapted.

Answer to Question 2

A compiler takes an entire program's source code written in a programming language and converts it into an executable, i.e., a program in machine language that can be read and executed directly by the computer. Although the compilation process can take quite some time (especially for large programs), the resulting executables run very fast; thus, programs are usually compiled before they are sold as executables to the customers.

Some programming environments do not compile the entire program into machine language. Instead, each statement of the program is converted into machine language and executed on the fly (i.e., one statement at a time). The type of program that does the conversion and execution is called an interpreter. As the source code is translated each time the program is run, it is easy to quickly evaluate the effects of any changes made to the program's source code. However, this also causes interpreted programs to run much slower than compiled executables. Programming languages can be either compiled or interpreted.





 

Did you know?

When Gabriel Fahrenheit invented the first mercury thermometer, he called "zero degrees" the lowest temperature he was able to attain with a mixture of ice and salt. For the upper point of his scale, he used 96°, which he measured as normal human body temperature (we know it to be 98.6° today because of more accurate thermometers).

Did you know?

There are 20 feet of blood vessels in each square inch of human skin.

Did you know?

Excessive alcohol use costs the country approximately $235 billion every year.

Did you know?

People about to have surgery must tell their health care providers about all supplements they take.

Did you know?

A seasonal flu vaccine is the best way to reduce the chances you will get seasonal influenza and spread it to others.

For a complete list of videos, visit our video library