Book a Demo

Author Topic: Questions with get/set (via property)  (Read 13255 times)

Christian Bergau

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Questions with get/set (via property)
« on: September 16, 2011, 11:21:47 pm »
I've created a class called "Employee".
It has two variables:

name :string
age :int

I've generated getter and setter methods via setting properties on the variables. This is a nice function, really, but why cant EA set the return values correctly?

I get this:

<<property get>>
+ getName() :var
+ getAge() :var

But what i want is this:

<<property get>>
+ getName() :string
+ getAge() :int

I have to change them manually now.

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Questions with get/set (via property)
« Reply #1 on: September 16, 2011, 11:34:17 pm »
hi
What language are you using?
What version of EA?
I am using EA9.1 and C++ and get no problems
Using V12

Christian Bergau

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Questions with get/set (via property)
« Reply #2 on: September 16, 2011, 11:40:18 pm »
Quote
hi
What language are you using?
What version of EA?
I am using EA9.1 and C++ and get no problems

EA 9.1 (latest version) and PHP.

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Questions with get/set (via property)
« Reply #3 on: September 17, 2011, 12:01:19 am »
Im sorry i know nothing about PHP

Christian Bergau

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Questions with get/set (via property)
« Reply #4 on: September 17, 2011, 12:04:40 am »
Quote
Im sorry i know nothing about PHP

Well this has nothing to do with PHP or any language. It's a problem with EA (or me :P)