define object variables - Programmers Heaven

Howdy, Stranger!

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

Categories

define object variables

rootroot Posts: 103Member
hello how do i define an object variable?
thanks,
ed.

Comments

  • zibadianzibadian Posts: 6,349Member
    : hello how do i define an object variable?
    : thanks,
    : ed.
    :
    Just declare a variable as part of a class declaration, like so:
    [code]
    class ExampleTwo {

    int someIntVariable

    }
    [/code]
Sign In or Register to comment.