Connecting Tech Pros Worldwide Forums | Help | Site Map

Beginners Doubts

gopal.balakrishnan@gmail.com
Guest
 
Posts: n/a
#1: Jul 23 '05
Static member fuctions: are they inheritable,if yes then how, and will
they still be able to access only static data members of the base
class?? I do not have a compiler at home to test things, and i dont
have only books to learn the lang, help plz!


Alf P. Steinbach
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Beginners Doubts


* gopal.balakrishnan@gmail.com:[color=blue]
>
> Static member fuctions: are they inheritable,[/color]

Yes, in the sense discussed below.

[color=blue]
> if yes then how,[/color]

They're accessible in the derived class just as in the base class,
unless they're declared 'private', and unless they're "shadowed" by
reuse of the names (but in that case the derived class code can access
them by qualifying the names).

[color=blue]
> and will
> they still be able to access only static data members of the base
> class??[/color]

Yes.

[color=blue]
> I do not have a compiler at home to test things,[/color]

See
<url: http://home.no.net/dubjai/win32cpptut/html/w32cpptut_01_01_02.html>

Also,
<url: http://www.comeaucomputing.com/tryitout/>

Beware, however, that a compiler may or may not conform to the standard
in various respects -- that even goes for the Comeau compiler, although
results from that compiler are usually regarded as definitive.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Closed Thread


Similar C / C++ bytes