answersLogoWhite

0

Objects allow you to achieve a high level of abstraction as result your program can be used for working with different things. A simple example: you want to write a function which will sort array with integers numbers. It's known that if you want your function to sort numbers with floating point you basically have to rewrite your function again but this time for types double or/and float.

Or you can use objects and write a class if you want which will do the same thing but for any type as far as certain set of mathematical operations is applicable for all of them.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you use a program as a direct object?

To use a program as a direct object, you simply perform an action on the program directly. For example, "I use the program to edit photos." The program is the direct object in this sentence because it is the recipient of the action of being used.


use the word program as a direct object?

Write a program for this process.


Why is necessary to use measuring tools in measuring length of an object?

It is necessary because measuring tools help you measure the length of an object accurately.


What are the two parts of compilation?

1) source program to object program 2)object program to object program output


What are necessary documents when a guard is posted?

What are necessary documents when a guard is posted


What is an program in java?

You can think of an object as something that has can have multiple instances within a program. For example, say you created an object that was a radio. Within your program you may have many radios, each set with its own volume and channel. Basically, it allows you to re-use your code by creating "new" instances of the same object.


Differences between source program and object program?

SOURCE PROGRAM=A set of instructions of the high level language used to code problems to find its solution on a computer is referred as source program. OBJECT PROGRAM=The computer translates the source program into machine language program called object program by using an interpreter or compiler is called object program.


Sexual feelings are normal and necessary?

[object Object]


When instructions are carried out a program runs a?

[object Object]


What is object program in computer programming?

I ALSO WANT TO KNOW!what is meant by object program?PLEASE TELL ME THE ANSWER.


What is an Object in Java Programming?

You can think of an object as something that has can have multiple instances within a program. For example, say you created an object that was a radio. Within your program you may have many radios, each set with its own volume and channel. Basically, it allows you to re-use your code by creating "new" instances of the same object.


What is use of new operator is it necessary to be used when object of the class is crated why?

In the case of the Java language, it is necessary. The reason is because that's how creating objects was defined in Java. Note that a method can return an object, so the use of the "new" operator may be hidden: x = SomeClass.someMethod(); In this example, is someMethod() returns an object, x will point to this object; however, the "new" operator is still used in the method someMethod().