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:

  • python math.pi
  • how to extract elements from datagram packet in java
  • java program for calculating day of the date using swing
  • getmessageheaders javamail
  • how to get the value for array in java using datainputstream
  • bigdecimal safe divide
  • javamail yahoo example
  • displaying the date on jpanel
  • email with attachment sent through javax.mail compatible with all email client
  • how to create buttons in python

No comments yet.

Leave a Comment