PRG 215 Wk 4 Discussion – Clarifying Classes and Objects

0 items
PRG 215 Wk 4 Discussion - Clarifying Classes and Objects
PRG 215 Wk 4 Discussion – Clarifying Classes and Objects
$3.00
  • Description

PRG 215 Wk 4 Discussion – Clarifying Classes and Objects

Post a total of 3 substantive responses over 2 separate days for full participation. This includes your initial post and 2 replies to other students.

Due Thursday

Respond to the following in a minimum of 175 words:

Ironically, the defining concept supposed to make object-oriented programming languages easier to code than procedural languages, the concept of defining a class that can be used to create multiple, similar objects, is often one of the toughest for procedural programmers to grasp.

Many analogies have been used to explain the class > object concept, including:

  • cookiecutter > cookies: one cookiecutter can make multiple cookies, each of which may vary slightly (frosting,sprinkles, etc.) just as programmers can vary each object they instantiate froma class.
  • common noun> proper noun: man is a commonnoun; like a class, it defines a set of assumptions (two arms, two legs, onehead, etc.) but doesn’t refer to any specific individual. Instances of thatcommon noun, like objects, do refer to specific individuals: SteveSmith, Ralph Jones, and Dan White. It’s the same with other common nouns, likeriver (Boise River, Allegheny River, Nile River), city (Seattle, Boston,Phoenix), and so on.
  • blueprint> finished building: a singleset of blueprints (class) defines specifications for a house, but every actualhouse (object) built from that blueprint will vary slightly.

Discuss this concept by posting your answers to the following questions:

  • Do you feel youunderstand the concept of creating multiple instances (objects) from a singleclass? If not, explain your confusion. If so, help clarify the concept to yourteammates.
  • How do yousuppose viewing a system as a collection of objects that interact with eachother might affect the way programmers analyze and design Java™ programs, asopposed to viewing a system as a series of sequential instructions, which ishow procedural programmers analyzed and designed programmers beforeobject-oriented languages like Java came along?

Due Monday

Reply to at least two of your classmates. Be constructive and professional in your responses.