473,503 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

another boring class question

class foo {
func(int x);
}

class faa {
foo fooObject;
}

would the function func(int x) be allowed to access private, public and
protected member variables of faa?

cheers
dave
Jul 22 '05 #1
5 1236
Dave wrote:

would the function func(int x) be allowed to access private, public and
protected member variables of faa?


No.

Jul 22 '05 #2
Dave wrote:
class foo {
func(int x);
}

class faa {
foo fooObject;
}
That code is ill-formed; meaning it won't compile.
would the function func(int x) be allowed to access private, public and
protected member variables of faa?


What does your tutorial tell you, thru the index, about those keywords?

--
Phlip
Jul 22 '05 #3
What does your tutorial tell you, thru the index, about those keywords?

It tells me "friends" can access them, inherited can access public and
protected, but this is neither of those.
Jul 22 '05 #4
Dave wrote:
What does your tutorial tell you, thru the index, about those keywords?
It tells me "friends" can access them, inherited can access public and
protected, but this is neither of those.


And what do your other tutorials say?

--
Phlip
Jul 22 '05 #5

"Dave" <da**********************************@hotmail.co m> wrote in message
news:3f******@dnews.tpgi.com.au...
What does your tutorial tell you, thru the index, about those keywords?

It tells me "friends" can access them, inherited can access public and
protected, but this is neither of those.


Right. Are you confused about what "friends" are?
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1666
by: Andy | last post by:
Hi all, Sorry to present you all with another boring problem but I've spent all day trying to get this to work with no success. Below is a function to which I pass the argument &$myCell (which...
5
5204
by: S. McKee | last post by:
Hi, I am very (very very) new to java and have what I am sure is a simple problem that I hope someone can help with. I have two .java files. The first has public final class FormatSWN { ...
47
2678
by: Daniel Silva | last post by:
Shriram Krishnamurthi has just announced the following elsewhere; it might be of interest to c.l.s, c.l.f, and c.l.p: http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html The...
4
1846
by: Tammy | last post by:
At the website http://www.htmlhelp.com/faq/html/frames.html#frame-update2 I found the following: The JavaScript-based solution uses the onClick attribute of the link to perform the secondary...
188
7044
by: christopher diggins | last post by:
I have posted a C# critique at http://www.heron-language.com/c-sharp-critique.html. To summarize I bring up the following issues : - unsafe code - attributes - garbage collection -...
1
3377
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows...
2
2317
by: Nik | last post by:
Hi, I'm trying (and failing) to learn MC++ and I get the feeling that when I ask this question, the proverbial record will scratch to a halt and everyone will stare at me as though I'm totally...
0
1418
by: Sebastian Hiller | last post by:
Hello, i'm new to .Net (i'm using VB as language and i'm working in the code-behind mode) and i can't solve the following problem: I have a WebForm and want to Add a UserControl...
7
4857
by: Wojtek | last post by:
Hello, how can I transparently insert one XML file into another? I am looking for a method simmilar to the #include <file> known from the C language. To be more precise, an example: I have...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.