Classes and Object

Object

  • An attribute describes: The current state of an object.
  • So, the following three dimensions describe any object in object oriented programming: identity, attributes, behavior.
  • Each object has its own identity, data, and behavior. 

Class

  • Attributes are also referred to as properties or data.
  • What is a method? A method is a function declared in a class.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s