answersLogoWhite

0

Object-oriented programming is a programming aid. It is not required, but it does make programming substantially easier. Machine code is "spaghetti" in nature and is extremely difficult and tedious to write. Structured programming makes it much easier to produce machine code, but structured programming is often highly repetitive. Duplicate code is problematic in that if you wish to change the code you have to locate all duplications and change those as well. If not done properly it can lead to inconsistencies. Also, most data is in global scope and global data is notoriously difficult to keep track of. Procedural programming is an extension of structured programming that allows programmers to break code down into a sequence of simple procedures or functions known as subroutines, allowing data to become more localised, passing from function to function. This also helps reduce code duplication to a degree. However, the programmer still has no control over which function may modify which data, which can make it difficult to maintain invariants. Object-oriented programming extends procedural programming by encapsulating data and the methods that operate upon that data into self-contained entities known as objects, each of which has its own interface. The interface defines an object's invariant and gives the programmer fine-grained control over accessibility. New object types (classes) can inherit from existing types as well as embed existing types, greatly reducing the need for code duplication and allowing the programmer to construct elaborate data models more easily.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

What are the three views of a sketch or drawing that are required to an object?

Isometric, Orthographic and Perspective, but perspective is not required to depict an object.


How do you use set and get in object-oriented programming?

A set function (or setter) is an object mutator. You use it to modify a property of an object such that the object's invariant is maintained. If the object has no invariant, a setter is not required. A get function (or getter) is an object accessor. You use it to obtain a property from an object such that the object's invariant is maintained. If the object has no invariant, you do not need a getter.


What is equivalant bs grade carbon steel for sa 516 gr 70 carbon steel?

REQUIRED EQUIVALENT GRADE FOR THIS GRADE sa 516 gr 70 .


What is object oriented paradigm in java?

the concept of "pure" in object orientation is a little subjective and not quite well defined in practice, but there are pure object oriented programming languages. The principles of object orientation on the other hand are well defined. Programming languages are quite nested in complicated materials, and it is hard to say that everything must be an object, since all formal systems need primitives. How can you define an object without the notion of an object as a definition? This all comes down to type theory, and one can't define everything as "something" without knowing the "something". With this, Java is not actually a pure object oriented programming language since it needs primitives. The only way you can yield a pure programming language with no primitives is not even having the notion of defining concrete terms in a programming language since it doesn't have primitives in it.Smalltalk is an example of a pure programming language. With this, I can't exactly answer the question since you've presented two OO programming languages, neither of which is "pure".-Fabianski BenjaminIndia


What is the orientation of a resistor?

No!

Related Questions

Which is used for an objects orientation to following the orientation of another object or averaged orientation several object?

The term commonly used for an object's orientation that follows the orientation of another object or the averaged orientation of several objects is "alignment." In robotics and computer graphics, alignment techniques such as quaternion averaging or vector averaging can be employed to achieve this. These methods ensure that the target object's orientation is adjusted to match or reflect the desired reference orientations accurately.


What is the word for the direction of an object in relation to another object?

Relative vector of velocity. "Bearing" is another possibility.


Is the object oriented programming in php useful?

Object orientation is not a concept related to usefull ness, it is a concept totally related to the software design. When we focused on software design we went for object orientation.


Does the middle of a object spinwhile object is turning?

no because the middle of any object is defined by its boundaries not by its orientation


What is affinity orientation?

Affinity Orientation is the object of attraction for personal and intimate relationships.sexual orientation is protected under a federal law known as title Vll


How does a microscope change the orientation of an object?

A microscope uses lenses to magnify and focus light to create an enlarged image of an object. By adjusting the position of the lens or the stage holding the object, the orientation of the object can be changed to view it from different angles under the microscope.


As an object moves closer to a convex lens what happens to the size and orientation of the image?

As an object moves closer to a convex lens, the size of the image increases. The orientation of the image remains the same, which means it is still upright if the object is upright and inverted if the object is inverted.


Does reflection change in orientation?

Yes, reflection changes the orientation of an object by flipping it across an axis, such as a line, without changing its shape or size. The object appears as a mirror image of its original position.


What does orientation reversed mean?

Orientation reversed typically refers to when the orientation of an object, such as a device screen or image, is flipped upside down or rotated 180 degrees. This can happen intentionally or due to a technical issue.


What is the orientation of a virtual image?

A virtual image is always upright in relation to the object.


What is it when an objects position changes relative to another object?

When an object's position changes relative to another object, it is called motion. This can refer to an object changing its location, orientation, or both in relation to another object.


What is a sideways force?

A sideways force is a force that is applied in a direction that is perpendicular to the direction an object is moving or the direction of an object's orientation. This force can cause the object to change its direction of motion or orientation. An example of a sideways force is a gust of wind pushing a sailboat to the side.