module weather { interface WeatherService{ attribute long citiesCovered; string getReport(in string city); }; };
package weather; public interface WeatherServiceOperations{ public java.lang.String getReport(java.lang.String city); }
package weather; public interface WeatherServiceOperations { public int citiesCovered(); public void citiesCovered(int arg); public java.lang.String getReport(java.lang.String city); }
package weather; public interface WeatherServiceOperations { public long citiesCovered(); public void citiesCovered(long arg); public java.lang.String getReport(java.lang.String city); }
long
int
module weather { interface WeatherService{ string getReport(in string city, out long temperature); }; };
package weather; public interface WeatherServiceOperations { public java.lang.String getReport(java.lang.String city, int temperature); }
package weather; public interface WeatherServiceOperations { public java.lang.String getReport(java.lang.String city, org.omg.CORBA.LongHolder temperature); }
package weather; public interface WeatherServiceOperations { public java.lang.String getReport(java.lang.String city, org.omg.CORBA.IntHolder temperature); }
out
IntHolder
module weather { interface WeatherService{ const string tempUnits = "farenheit"; string getReport(in string city); }; };
package weather; public interface WeatherServiceOperations { public java.lang.String getReport(java.lang.String city); }
package weather; public interface WeatherServiceOperations { public java.lang.String getReport(java.lang.String city); java.lang.String tempUnits = "farenheit"; }
package weather; public interface WeatherServiceOperations { public java.lang.String getReport(java.lang.String city); java.lang.String getTempUnits(); }
const