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

In 1886, William Bates reported on the discovery of a substance produced by the adrenal gland that turned out to be epinephrine (adrenaline). In 1904, this drug was first artificially synthesized by Friedrich Stolz.

Did you know?

Increased intake of vitamin D has been shown to reduce fractures up to 25% in older people.

Did you know?

Hyperthyroidism leads to an increased rate of metabolism and affects about 1% of women but only 0.1% of men. For most people, this increased metabolic rate causes the thyroid gland to become enlarged (known as a goiter).

Did you know?

In the United States, an estimated 50 million unnecessary antibiotics are prescribed for viral respiratory infections.

Did you know?

Anesthesia awareness is a potentially disturbing adverse effect wherein patients who have been paralyzed with muscle relaxants may awaken. They may be aware of their surroundings but unable to communicate or move. Neurologic monitoring equipment that helps to more closely check the patient's anesthesia stages is now available to avoid the occurrence of anesthesia awareness.

For a complete list of videos, visit our video library