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 77 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?

About 600,000 particles of skin are shed every hour by each human. If you live to age 70 years, you have shed 105 pounds of dead skin.

Did you know?

The cure for trichomoniasis is easy as long as the patient does not drink alcoholic beverages for 24 hours. Just a single dose of medication is needed to rid the body of the disease. However, without proper precautions, an individual may contract the disease repeatedly. In fact, most people develop trichomoniasis again within three months of their last treatment.

Did you know?

On average, the stomach produces 2 L of hydrochloric acid per day.

Did you know?

The B-complex vitamins and vitamin C are not stored in the body and must be replaced each day.

Did you know?

Adults are resistant to the bacterium that causes Botulism. These bacteria thrive in honey – therefore, honey should never be given to infants since their immune systems are not yet resistant.

For a complete list of videos, visit our video library