Book a Demo

Author Topic: ::  (Read 6337 times)

zyx

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-1
    • View Profile
::
« on: October 11, 2010, 01:55:30 am »
Hello all,

    Again I apologize for my bad english...

    I am trying to put a class inside another class, but when I do it, the name of the container class and two symbols of ":" appear in front the name of the inner class... It is possible to take it off?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: ::
« Reply #1 on: October 11, 2010, 04:15:20 pm »
No, and with good reason.
If you have a valid reason to create an inner class then you shouldn't be bothered by the '::'.
If it bothers you then you probably don't have a valid reason, and you should put the class outside of its owner class.

Geert

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: ::
« Reply #2 on: October 11, 2010, 08:13:32 pm »
Quote
If it bothers you then you probably don't have a valid reason, and you should put the class outside of its owner class.

+1 !!!
Valid reasons, however include:
1) Very, very, extremely very local enums.
2) Nah, can't think of any other.
« Last Edit: October 11, 2010, 08:16:50 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.