Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oo cobol 1

Status
Not open for further replies.

jimlee

Programmer
Jan 27, 2001
213
GB
can anyone shed some light on the relationship between classes and objects and how you 'create' an object by invoking it (isn't it already there?)]
as you can see,this is my first venture from procedural to oo cobol so any links to any useful sites or good text books would be much appreciated, ta.
 
Jimlee,

I haven't looked into OO-COBOL yet, but your question relates to general OO principles.
A class is generic definition; it describes a family of objects with the same characteristics. An object is an instance of a class, which means that an object is an individual item which has the characteristics defined by that class.

Example: if "sportscars" is a class, the object "silver grey Porsche 911" might be an instance of that class.

I can't readily give you any sources of information, but try searching on "object orientation", or something like that. It's still a hot item, so something useful must be there.

Good luck !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top