• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Protected Data in Java and C++ Isn't Very Protected

Ranch Foreman
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At some point I mentioned how strongly some people seem to feel that protected is anything but, and it opens pandora's box, especially for data.

I mentioned how in C# you can specify private protected meaning that only sub-classes in the same package (well, assembly) can access these, and how that is relatively well-controlled, so some people are more calm about that.

In Java and C++ there is no such ability, and a pretty good write up of why that is likely to become a workplace safety hazard is at:
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic