A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Dec 25, 2009
Dec 25, 2009 04:20:41
what is exactly use of protected member specification in inheritance for c++,
Jack of all but Master of none,
But I m Master of One.
Joined: Jan 22, 2007
Dec 25, 2009 04:54:23
A protected member is visible to inheriting classes, even not part of the same package,.
| SCWCD5 81% |
Joined: Oct 25, 2008
Dec 25, 2009 05:22:04
And classes within the same package.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Joined: Aug 03, 2008
Dec 25, 2009 05:45:28
Hi Hiral, welcome to javaranch.
Use A Meaningful Subject Line
when you start a topic...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
I agree. Here's the link:
Access Modifier protected -- SCJP Study Guide page 36
K&B SCJP 5 forgets to mention 2 cases for protected access
ID:1 SCJP Question of the day !!! Tuesday, August 24 2010
about protected modifier
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015