• Welcome to Valhalla Legends Archive.
 

C# & C++ Question

Started by Mephisto, December 07, 2004, 08:16 PM

Previous topic - Next topic

MyndFyre

Then nope.  There isn't.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Mephisto


dxoigmn

Quote from: MyndFyre on December 09, 2004, 03:58 PM
Then nope.  There isn't.

It's all just syntactic sugar anyways.

KrAzY_NuK

Quote from: MyndFyre on December 08, 2004, 07:01 PM
Protected classes are actually classes within classes and can be accessed by classes that derive from the class that it exists within;

In Java, aren't protected classes accessible by all the other classes in the *package*?

MyndFyre

Quote from: KrAzY_NuK on December 20, 2004, 01:16 PM
Quote from: MyndFyre on December 08, 2004, 07:01 PM
Protected classes are actually classes within classes and can be accessed by classes that derive from the class that it exists within;

In Java, aren't protected classes accessible by all the other classes in the *package*?

Say you have:

A.java:

public class A
{
  protected class B
  {

  }
}


C.java:

public class C extends A
{
  // I can access B here.
}

That is Java protected-class accessibility.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

KrAzY_NuK

Quote from: MyndFyre on December 20, 2004, 01:34 PM
Quote from: KrAzY_NuK on December 20, 2004, 01:16 PM
Quote from: MyndFyre on December 08, 2004, 07:01 PM
Protected classes are actually classes within classes and can be accessed by classes that derive from the class that it exists within;

In Java, aren't protected classes accessible by all the other classes in the *package*?

Say you have:

A.java:

public class A
{
  protected class B
  {

  }
}


C.java:

public class C extends A
{
  // I can access B here.
}

That is Java protected-class accessibility.

oops..i was thinking of data members

A.java:

public class A
{
  protected int B;
}


C.java:

public class C
{
  // create an instance of A, and access B
}


Because you haven't explicitly named what package their in, their a part of the default package.  From what i've learnt you should be able to access B from C.  That's what I was asking.

Now, given that, do the same rules apply to the classes?

ergh, i'll have to check that out at home tonight.