Instance and object - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Instance and object

Chaitanya_PuneChaitanya_Pune Posts: 87Member
Hi all,
Is there any difference between an object and an instance of a class?

Regards,
Chaitanya

Comments

  • stoberstober Posts: 9,765Member ✭✭✭
    : Hi all,
    : Is there any difference between an object and an instance of a class?
    :
    : Regards,
    : Chaitanya
    :


    Maybe yes, and maybe no. Depends on the context in the sentence. The two could be used interchangeably. "An object" might also be referring to the class itself and not an instance of the class.
  • tsagldtsagld Posts: 621Member
    : : Hi all,
    : : Is there any difference between an object and an instance of a class?
    : :
    : : Regards,
    : : Chaitanya
    : :
    :
    :
    : Maybe yes, and maybe no. Depends on the context in the sentence. The two could be used interchangeably. "An object" might also be referring to the class itself and not an instance of the class.
    :
    'An instance of a class is an object in memory'.

    Greets,
    Eric Goldstein
    http://www.gvh-maatwerk.nl


Sign In or Register to comment.