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.
*OBJECT ORIENTED PROGRAMMING* *JAVA PROGRAMMING* Create a program that simulates a race between several vehicles. Details...
*OBJECT ORIENTED PROGRAMMING* *JAVA PROGRAMMING* Create a program that simulates a race between several vehicles. Details don't matter code must just have the following: Design and implement an inheritance hierarchy that includes Vehicle as an abstract superclass and several subclasses. Include a document containing a UML diagram describing your inheritance hierarchy. Include at least one interface that contains at least one method that implementing classes must implement. Include functionality to write the results of the race to a file; this...
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...
1. Discuss the following system development methods (600 words approx.) – Structured development – Object oriented...
1. Discuss the following system development methods (600 words approx.) – Structured development – Object oriented development – Agile development – Rapid Application Development 2. What is project creep? Which system development methods are more prone to project creep? What could be a strategy to avoid it? (400 words approx.)
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,
Course name object oriented programming. 3) Define the following methods: - constructors: create two constructors with...
Course name object oriented programming. 3) Define the following methods: - constructors: create two constructors with and without parameters. - setName: this method sets the name of the School. - getName: this method returns the name. - setPhone: this method sets the phone number. - getPhone: this method returns the phone number. - setType: this method sets the type of the school. - getType: this method returns the type of the school. - toString: this method returns a string the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT