Author Question: Explain the difference between class and object. What will be an ideal ... (Read 30 times)

karateprodigy

  • Hero Member
  • *****
  • Posts: 550
Explain the difference between class and object.
 
  What will be an ideal response?

Question 2

Patterns are generalizations of the solutions that have worked in a certain context.
 
  Indicate whether the statement is true or false



CourtneyCNorton

  • Sr. Member
  • ****
  • Posts: 317
Answer to Question 1

Class and object are often used interchangeably. And often, no harm results: class is an abstraction of similar objects and an object is a concrete manifestation of a class. (Sentences would become very awkward if everywhere we repeat class and/or objects or class and its instances.) In majority of cases, what we say about classes also applies to objects, and vice versa. It is in those minority of cases that the distinction is crucial: class is the concept, object is the realization of the concept. Class is the cookie cutter, object is the cookie. If we declare that the cookie cutter is round, we imply that the cookie would be round, too. But if we say that we want to eat a cookie, it is unlikely that we mean to eat the cookie cutter as well.

Answer to Question 2

TRUE



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

Approximately one in four people diagnosed with diabetes will develop foot problems. Of these, about one-third will require lower extremity amputation.

Did you know?

The use of salicylates dates back 2,500 years to Hippocrates’s recommendation of willow bark (from which a salicylate is derived) as an aid to the pains of childbirth. However, overdosage of salicylates can harm body fluids, electrolytes, the CNS, the GI tract, the ears, the lungs, the blood, the liver, and the kidneys and cause coma or death.

Did you know?

ACTH levels are normally highest in the early morning (between 6 and 8 A.M.) and lowest in the evening (between 6 and 11 P.M.). Therefore, a doctor who suspects abnormal levels looks for low ACTH in the morning and high ACTH in the evening.

Did you know?

Each year in the United States, there are approximately six million pregnancies. This means that at any one time, about 4% of women in the United States are pregnant.

Did you know?

There are major differences in the metabolism of morphine and the illegal drug heroin. Morphine mostly produces its CNS effects through m-receptors, and at k- and d-receptors. Heroin has a slight affinity for opiate receptors. Most of its actions are due to metabolism to active metabolites (6-acetylmorphine, morphine, and morphine-6-glucuronide).

For a complete list of videos, visit our video library