Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Using Constructors that Have Arguments

Java: Using Constructors that Have Arguments
{filelink=11095}

public class ConstructorWithArg
 {
  public static void main(String[] args)
   {
         new TV ("Toshiba","800.000$");
   }
 }
 class TV
 	{
    // Constructor with two arguments
    public TV(String brand, String price)
         {
    System.out.println("TV object created for: "+brand+" "+ price);
         }
   }

Users who found this page were searching for:

  • bigdecimal safe divide
  • java program for printing the no of days between two dates
  • python string atoi example
  • how to get the value for array in java using datainputstream
  • sun net ftp ftpclient example
  • java program for calculating day of the date using swing
  • tutorial import sun.net.ftp.
  • python math.pi
  • email with attachment sent through javax.mail compatible with all email client
  • python mous event bind

No comments yet.

Leave a Comment