Author Question: Explain the difference between class and object. What will be an ideal ... (Read 17 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?

The largest baby ever born weighed more than 23 pounds but died just 11 hours after his birth in 1879. The largest surviving baby was born in October 2009 in Sumatra, Indonesia, and weighed an astounding 19.2 pounds at birth.

Did you know?

The tallest man ever known was Robert Wadlow, an American, who reached the height of 8 feet 11 inches. He died at age 26 years from an infection caused by the immense weight of his body (491 pounds) and the stress on his leg bones and muscles.

Did you know?

There are more bacteria in your mouth than there are people in the world.

Did you know?

Nitroglycerin is used to alleviate various heart-related conditions, and it is also the chief component of dynamite (but mixed in a solid clay base to stabilize it).

Did you know?

The cure for trichomoniasis is easy as long as the patient does not drink alcoholic beverages for 24 hours. Just a single dose of medication is needed to rid the body of the disease. However, without proper precautions, an individual may contract the disease repeatedly. In fact, most people develop trichomoniasis again within three months of their last treatment.

For a complete list of videos, visit our video library