Question

In: Computer Science

1. Look for information about two other object-oriented programming languages and their program development environments. Briefly...


1. Look for information about two other object-oriented programming languages and their program development environments. Briefly describe them other than Visual Basic.

2. Explain the difference between a Compiler and an Interpreter in Visual Basic


Solutions

Expert Solution

1.Java

Java is an object Oriented Programming (OOP) language.
It incorporates almost every OOP features. Object creation through object template
i.e. class, data abstraction and encapsulation, data and code sharing through inheritance.
Overloading concept through polymorphism, and data/process hiding etc. are some basic OOP features in Java


Java has a concept called Java Virtual Machine (JVM).
This JVM specifies wonderfully detailed with a dummy CPU and dummy instruction set that looks like standard assembly code.
The Java compiler transforms the source programs into the instructions of JVM. The compiled Java code in known as byte code instruction.
Java interpreter is there which is specific to each environment (processor and OS) and converts the byte code instructions into the native processor instructions before executing it.
This converts a program source into an object code is compile half way and interpret half way

2.Ruby:

It is a general purpose and object oriented programming language invented in 1993 by Yukihiro Matz Matsumoto.
It is one of the fastest growing programming languages among many object oriented programming lanhuages.
Ruby is very easy to use and you can create an app with in 10 minutes.
Groupon, Airbnb and Pxlr all are coded in Ruby.
Ruby operates as a dynamic, object orientated, because it reads like English.
It makes the code easy to read.
It’s needed to maintain code databases for many high end websites.
Ruby MRI is the most commonly used Ruby interpreter.

Compiler:
Compiler is a translator that reads the entire program and converts it to source code for successful execution. The compiler also give us the errors and warning if any before the program execution. The source code acts as an input to the compiler and the object code is the output of the compiler.

But the process of compilation takes some time as we need to correct all the errors it gives before program execution. It can also link intermediate classes and subroutines to the source program and act as a linker. Most of the high level languages such as C, C++, JAVA, etc. uses compiler.

Interpreter:
Interpreter is also a translator and converts the source code into object code but in a different way than the compiler. The interpreters reads the source code line by line and executes the program directly. The object code is also created line by line.

The interpreters are fast as compared to compilers as they don’t go for error checking at a whole and the error is checked at the run-time. Very high level languages such as C#, F#, etc are interpreter oriented.


Related Solutions

Briefly explain the terms used in object-oriented programming with examples.
Briefly explain the terms used in object-oriented programming with examples.
1. In Object Oriented Programming The private object fields can be directly manipulated by outside entities....
1. In Object Oriented Programming The private object fields can be directly manipulated by outside entities. Group of answer choices A. True B. False 2. __________ programming is centered on the procedures or actions that take place in a program. Group of answer choices A. Class B. Object-oriented C. Menu-driven D. Procedural/ Structural 3. __________ programming encapsulates data and functions in an object. Group of answer choices A. Object-oriented B. Class C. Menu-driven D. Procedural 4. The data in an...
Kindly Do the program in C++ language Object Oriented Programming. Objectives  Implement a simple class...
Kindly Do the program in C++ language Object Oriented Programming. Objectives  Implement a simple class with public and private members and multiple constructors.  Gain a better understanding of the building and using of classes and objects.  Practice problem solving using OOP. Overview You will implement a date and day of week calculator for the SELECTED calendar year. The calculator repeatedly reads in three numbers from the standard input that are interpreted as month, day of month, days...
Research and explain in your words what is known as Object Oriented Programming. Then, identify two...
Research and explain in your words what is known as Object Oriented Programming. Then, identify two advantages of OOP for application development. In peer replies, choose from one of the following and define the concept as part of your response. Abstraction. Encapsulation. Inheritance. Polymorphism.
Throughout this course, you will be learning about object-oriented programming and demonstrating what you learn by...
Throughout this course, you will be learning about object-oriented programming and demonstrating what you learn by writing some programs in Java. The first step will be to install and integrated development environment (IDE) that will be where you will write and compile your programs. You will also write your first program using Java to show that you have correctly installed the IDE. The project instructions and deliverables are as follows: Download and install Java JDK and NetBeans IDE using the...
object oriented programming java Create a Student class that have two data members id (assign to...
object oriented programming java Create a Student class that have two data members id (assign to your ID) and name (assign to your name). Create the object of the Student class by new keyword and printing the objects value. You may name your object as Student1. The output should be like this: 20170500 Asma Zubaida
(a) Explain at least TWO (2) major aspects of an object-oriented programming (OOP). Provide suitable examples,
(a) Explain at least TWO (2) major aspects of an object-oriented programming (OOP). Provide suitable examples,
Make a simple game using C++ which implements all about Object Oriented Programming (Please make an...
Make a simple game using C++ which implements all about Object Oriented Programming (Please make an explanation which of each part in it)
Write 5 questions about Object Oriented Programming in Python. Each question should have 7 options. Please...
Write 5 questions about Object Oriented Programming in Python. Each question should have 7 options. Please provide 7 answer options for EACH question and the select answer for EACH question
Practice object-oriented principles by making two Peanut Butter and Jelly Sandwiches. The program must create two...
Practice object-oriented principles by making two Peanut Butter and Jelly Sandwiches. The program must create two sandwiches based on user input. The sandwich information for both must then print out their details and determine if the two sandwiches are equal. Requirements:   Write a class called Bread with the following Instance Variables Name: The name brand of the bread. o   Calories: The number of calories per slice assumed to be between 50 and 250 inclusively. Type: The kind of bread. This can...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT