Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1348

Re: Object Oriented Programming

X-Received by 10.224.175.65 with SMTP id w1mr3294925qaz.7.1360329836343; Fri, 08 Feb 2013 05:23:56 -0800 (PST)
X-Received by 10.49.38.194 with SMTP id i2mr401731qek.30.1360329836325; Fri, 08 Feb 2013 05:23:56 -0800 (PST)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!p13no3759681qai.0!news-out.google.com!k2ni19249qap.0!nntp.google.com!p13no3759679qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.programming.threads
Date Fri, 8 Feb 2013 05:23:56 -0800 (PST)
In-Reply-To <5114eec7$0$13535$91cee783@newsreader04.highway.telekom.at>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=123.238.176.175; posting-account=0IC0jAoAAABr15JfBPO75I2HoIkqD5uO
NNTP-Posting-Host 123.238.176.175
References <340b5a80-9f86-45fa-838d-34ca40ad866b@googlegroups.com> <5114eec7$0$13535$91cee783@newsreader04.highway.telekom.at>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <fb5696a7-641c-4f97-a88d-cc19bc204dd0@googlegroups.com> (permalink)
Subject Re: Object Oriented Programming
From Pankaj Tiwari <pankajtiwarisagar@gmail.com>
Injection-Date Fri, 08 Feb 2013 13:23:56 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 2535
Xref csiph.com comp.programming.threads:1348

Show key headers only | View raw


On Friday, February 8, 2013 5:55:48 PM UTC+5:30, Johann Klammer wrote:
> New Baby wrote:
> 
> > They said that private declared data in a class is secured and can't be accessed from outside..I want to know what is that "outside" thing..?  is there someone sitting in my main function who can steal my beautiful integer if i declared it public...
> 
> >
> 
> > When Everything is protected inside the executable itself...what is the point behind those accessibility...are they invented to save me from the "Hacker"(as my teachers frightened me from my childhood)?
> 
> >
> 
> > Kick me..slap me..laught at me..but please Answer..i m sick of listening..i want to know today :/
> 
> 
> 
> It is not security related at all. It is interface related. If you are 
> 
> the only one hacking away at some small code snippet you can safely 
> 
> ignore all that OO-encapsulation stuff and make it all globals. If, 
> 
> however you are collaborating with several other people, someone will 
> 
> have to define public interfaces to use, and keep module internal stuff 
> 
> internal, to keep people from stepping on each others' toes. That's what 
> 
> private and protected is good for.


oh..that means when we work on different parts of program together in team...then this is used..I got it..
Thankyou Johann...:D

Back to comp.programming.threads | Previous | NextPrevious in thread | Find similar


Thread

Object Oriented Programming New Baby <pankajtiwarisagar@gmail.com> - 2013-02-07 10:05 -0800
  Re: Object Oriented Programming Noob <root@127.0.0.1> - 2013-02-08 10:15 +0100
  Re: Object Oriented Programming Johann Klammer <klammerj@NOSPAM.a1.net> - 2013-02-08 13:25 +0100
    Re: Object Oriented Programming Pankaj Tiwari <pankajtiwarisagar@gmail.com> - 2013-02-08 05:23 -0800

csiph-web