Click here to Skip to main content
15,905,566 members
Home / Discussions / C#
   

C#

 
GeneralRe: nt service to start a process Pin
Heath Stewart7-Nov-03 3:37
protectorHeath Stewart7-Nov-03 3:37 
GeneralRe: nt service to start a process Pin
thilol14-Nov-03 3:00
thilol14-Nov-03 3:00 
GeneralRe: nt service to start a process Pin
Heath Stewart14-Nov-03 4:26
protectorHeath Stewart14-Nov-03 4:26 
GeneralC# Tutorials for extreme newbies... Pin
Fubak6-Nov-03 3:19
Fubak6-Nov-03 3:19 
GeneralRe: C# Tutorials for extreme newbies... Pin
Heath Stewart6-Nov-03 3:39
protectorHeath Stewart6-Nov-03 3:39 
GeneralRe: C# Tutorials for extreme newbies... Pin
Kentamanos6-Nov-03 5:49
Kentamanos6-Nov-03 5:49 
GeneralRe: C# Tutorials for extreme newbies... Pin
J. Dunlap6-Nov-03 8:15
J. Dunlap6-Nov-03 8:15 
GeneralRe: C# Tutorials for extreme newbies... Pin
Kentamanos6-Nov-03 8:19
Kentamanos6-Nov-03 8:19 
GeneralRe: C# Tutorials for extreme newbies... Pin
Heath Stewart6-Nov-03 11:37
protectorHeath Stewart6-Nov-03 11:37 
GeneralRe: C# Tutorials for extreme newbies... Pin
Judah Gabriel Himango6-Nov-03 7:01
sponsorJudah Gabriel Himango6-Nov-03 7:01 
Questioncan one class new another? Pin
R. Thomas6-Nov-03 2:26
R. Thomas6-Nov-03 2:26 
AnswerRe: can one class new another? Pin
bjoernen6-Nov-03 3:07
bjoernen6-Nov-03 3:07 
GeneralRe: can one class new another? Pin
R. Thomas6-Nov-03 3:56
R. Thomas6-Nov-03 3:56 
GeneralRe: can one class new another? Pin
bjoernen6-Nov-03 4:41
bjoernen6-Nov-03 4:41 
GeneralRe: can one class new another? Pin
Judah Gabriel Himango6-Nov-03 7:08
sponsorJudah Gabriel Himango6-Nov-03 7:08 
Generalconfusing constructor prob Pin
R. Thomas6-Nov-03 2:17
R. Thomas6-Nov-03 2:17 
GeneralRe: confusing constructor prob Pin
bjoernen6-Nov-03 3:01
bjoernen6-Nov-03 3:01 
Generalaccessing base class fn.. Pin
R. Thomas6-Nov-03 2:09
R. Thomas6-Nov-03 2:09 
GeneralRe: accessing base class fn.. Pin
bjoernen6-Nov-03 3:03
bjoernen6-Nov-03 3:03 
GeneralRe: accessing base class fn.. Pin
R. Thomas6-Nov-03 4:02
R. Thomas6-Nov-03 4:02 
GeneralRe: accessing base class fn.. Pin
bjoernen6-Nov-03 4:42
bjoernen6-Nov-03 4:42 
Generalnoob inherritance prob Pin
R. Thomas6-Nov-03 2:04
R. Thomas6-Nov-03 2:04 
hi..if you have some free time, i'd appreciate if you can please help me.
please consider the following code :
class sample<br />
{<br />
	protected int i ;<br />
	public sample( )<br />
	{<br />
		i = 10 ;<br />
	}<br />
}<br />
class sample1 : sample<br />
{<br />
	public sample1( )<br />
	{<br />
		Console.Write ("Hello " + i ) ;<br />
	}<br />
}<br />
class Class1<br />
{<br />
	static void Main ( string[ ] args )<br />
	{<br />
		sample1 s = new sample1( ) ;<br />
	}<br />
}

which yeilds the result : Hello 10

my prob : AS I CAN UNDERSTAND : in above case the derieved class is accessing the protected attribute of the base class... but i thought in CS that wasn't supposed to happen..Confused | :confused:
OR am i looking at it wrongly??Frown | :(
pls help..tks a lot

Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40

GeneralRe: noob inherritance prob Pin
bjoernen6-Nov-03 2:51
bjoernen6-Nov-03 2:51 
GeneralRe: noob inherritance prob Pin
R. Thomas6-Nov-03 4:04
R. Thomas6-Nov-03 4:04 
GeneralRe: noob inherritance prob Pin
bjoernen6-Nov-03 4:43
bjoernen6-Nov-03 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.