[program-java] Re: Java

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: <program-java@xxxxxxxxxxxxx>
  • Date: Thu, 27 Nov 2008 15:41:01 -0500

Ok, I understand that part but when you ask a student to create a new
class, the new class can only be public.... 

Jim  

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Octavian Rasnita
Sent: November 27, 2008 15:39
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: Java

I guess you might say something like:

"The java project file may only contain one public class but can contain
multiple classes which are not public."

Octavian

----- Original Message -----
From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
To: <program-java@xxxxxxxxxxxxx>
Cc: <program-l@xxxxxxxxxxxxx>
Sent: Thursday, November 27, 2008 10:32 PM
Subject: [program-java] Java


...sorry for the cross posting but I thought y'all would find this
interesting.

I understand the following statement, but how would you explain it to a
newby....

"The java project file may only contain one public class but can contain
multiple classes with less than public access."

I'm wrestling with public verses private and now add less than
public.... Time for a stiff drink of Southern Comfort.

Jim


James M. Corbett

A / Technical Specialist
GST / HST Micro Development
875 Heron Rd / Ottawa / Ontario

(613) 941-1338



Other related posts: