answersLogoWhite

0


Best Answer

In a declarative statement, you initialize the object. But in an imperative statement, you use a preexisting statement and use it.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between a declarative statement and an imperative statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a declarative and imperative?

The difference between a declarative sentence and an imperative sentence is that a declarative sentence is a statement and an imperative sentence is a command.Here is an example of a declarative sentence:A spider has eight legs.Here is an example of an imperative sentence:Please go get me some water


What is the difference between a declarative sentence and an imperative sentence?

A declarative sentence makes a statement. In imperative statement is an order or direction to do something


What is the difference between declarative and imperative programming?

Imperative is how the computer should do something. Declarative is what you would like the computer to do.


What is difference between imperative and declarative sentences?

With an imperative sentence, the subject is understood and not necessarily stated. "Close the door." The subject is you and the verb is close.


What is the difference between Imperative object-oriented functional and logic programming?

These are all programming paradigms; they describe the "style" used to build the structure and elements of a computer program. Imperative programming is typically contrasted with declarative programming because they are mutually-exclusive (you won't find any programming languages that are both imperative and declarative), in the same way that you won't find any languages that have both a structured paradigm and a non-structured paradigm. The main difference between the two is that imperative programming describes how a result is to be achieved without specifying what is to be achieved, whereas declarative programming describes what is to be achieved without specifying how it is to be achieved. Another key difference is that imperative programming makes extensive use of changing-state and mutable data whereas declarative programming does not. Put simply, there are no assignment operations or side-effects in declarative programming. Given that the object-oriented programming (OOP) paradigm is based upon objects with member methods that can mutate the object's attributes, OOP is based upon the imperative paradigm. The functional programming paradigm is not to be confused with function calls which are based upon the procedural programming paradigm, which is itself based upon the structured programming paradigm, both of which are imperative. By "functional" we really mean mathematical functions, which are declarative. Although there are some imperative languages that do allow a type of functional programming style, at best they are a grey area because of the side-effects. Logical programming is also declarative and is based on relations.


What is the difference between declarative interrogative exclamatory and imperative sentences?

A declarative sentence states a fact or description about something. (e.g. The ball is red.) An interrogative sentence is a question. (e.g. What color is the ball?) An exclamatory sentence uses expression or voice to present information. (e.g. I'm so excited you are coming.) An imperative sentence issues a command. (e.g. Go get the ball. Don't run in the hallway.)


What is the difference between declarative and procedural questions?

procedural asks you to solve.


What is difference between basic command and statement?

difference between command and statement


What is the difference between a descriptive and an explanatory statement?

A descriptive statement simply describes a situation or phenomenon, while an explanatory statement seeks to provide reasons or causes for why something is the way it is. Descriptive statements focus on providing details and observations, while explanatory statements aim to offer insight and understanding.


What is the difference between exclamatory and declarative?

exclamatory ends with a ! and declarative just ends with a . just think of the word declarative as you are declaring something therefor you need a period to it to make sure you make your point (.)


What is the difference between interrogative and imperative?

Interrogative sentences are used to ask questions, seeking information or clarification. They typically begin with words like "who," "what," "where," "when," "why," or "how." Imperative sentences are commands or requests that tell someone to do something and usually do not have a subject, such as "please sit down" or "close the door."


What is the difference between bar scale and statement scale?

What is the difference between a bar scale and a statement scale