Affiliate Programs
 
Search affiliate programs for: 
Affiliate Categories
» Affiliate Networks
» Ad Networks
» 2 Tier Programs
» Pay Per Sale
» Pay Per Lead
» Residual Income
» Datafeeds
» Multi Tier Programs
» Business Opps
» Other Programs

Newsletter
Get newly added affiliate programs by email. Enter your email here:
Article Categories
» Affiliate Marketing
» Business
» Ecommerce
» Hosting
» Marketing
» Sales
» Web Designing
» Webmasters
» SEO & Promotion
» Working At Home
» Other Articles
» Affiliate Glossary


Go Back   AffiliateSeeking Forum > Website Creation, Design & Maintenance > Programming > ASP

ASP Discuss about ASP scripting problems or help others with their ASP scripting issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2010, 11:04 AM
ursimrankhanna ursimrankhanna is offline
Senior Member
 
Join Date: Jul 2010
Location: delhi ( india )
Posts: 508
ursimrankhanna is on a distinguished road
Default what is Constucter?

plz reply the my question...
Thank you.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-10-2010, 07:55 AM
jurwanwall jurwanwall is offline
Member
 
Join Date: Nov 2010
Posts: 85
jurwanwall is on a distinguished road
class Rectangle{
int l, b;
float p, q;
public Rectangle(int x, int y){
l = x;
b = y;
}
public int first(){
return(l * b);
}
public Rectangle(int x){
l = x;
b = x;
}
public int second(){
return(l * b);
}
public Rectangle(float x){
p = x;
q = x;
}
public float third(){
return(p * q);
}
public Rectangle(float x, float y){
p = x;
q = y;
}
public float fourth(){
return(p * q);
}
}
__________________
Designer Sunglass Reviews
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-23-2010, 06:54 AM
Jagbani Jagbani is offline
Senior Member
 
Join Date: Jul 2010
Location: punjab
Posts: 109
Jagbani is on a distinguished road
HI,
Thank you for the solved the my problem.

Your Regards,
Jagbani..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-06-2010, 05:44 AM
deveshraigniit deveshraigniit is offline
Member
 
Join Date: Nov 2010
Location: Delhi
Posts: 97
deveshraigniit is on a distinguished road
HI,
Constructor is function which describe from the class name.we use the Constructor when we do not describe the class object in main method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-13-2011, 04:34 PM
deveshraigniit deveshraigniit is offline
Member
 
Join Date: Nov 2010
Location: Delhi
Posts: 97
deveshraigniit is on a distinguished road
Constructor:-
Constructor is like a class function if we be called the without define the object of the class then we use the constructor.

Syntax:-

class Add
{
public Add()
{
int a=20;
int b=30;
int result= a+b;
console.WriteLine("The Value is"+result);
}
public static void main(String [] args)
{
}
}
__________________
Girls T Shirts|T Shirts| Sopping Online
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-13-2011, 06:54 PM
tianli tianli is offline
Junior Member
 
Join Date: Apr 2011
Posts: 16
tianli is on a distinguished road
Quote:
Originally Posted by jurwanwall View Post
class Rectangle{
int l, b;
float p, q;
public Rectangle(int x, int y){
l = x;
b = y;
}
public int first(){
return(l * b);
}
public Rectangle(int x){
l = x;
b = x;
}
public int second(){
return(l * b);
}
public Rectangle(float x){
p = x;
q = x;
}
public float third(){
return(p * q);
}
public Rectangle(float x, float y){
p = x;
q = y;
}
public float fourth(){
return(p * q);
}
}
It is a great a clear answer, i learn it too
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-12-2011, 07:10 AM
tenantfile tenantfile is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
tenantfile is on a distinguished road
some times we can say that constructor is a class but its not exactly a class.but its having the same name of the class.it automatically called at the time of execution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-13-2011, 07:07 AM
jenny3103 jenny3103 is offline
Member
 
Join Date: Apr 2011
Posts: 39
jenny3103 is on a distinguished road
onstructor are used for initialization of member variables.Constructor are automatically invoked when the object is created.Constructor doesn't have any return type not even void.Constructor have the same name as the class name.We can't call the constructor explicitly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-17-2011, 01:55 PM
tylerlongtw tylerlongtw is offline
Senior Member
 
Join Date: May 2011
Posts: 392
tylerlongtw is on a distinguished road
Default constructor

A constructor is just like a function but it has the same name as the class does, and is called whenever the object of that class is being created.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-01-2011, 06:52 AM
amkeabhi123 amkeabhi123 is offline
Senior Member
 
Join Date: Jul 2011
Posts: 111
amkeabhi123 is on a distinguished road
Send a message via Skype™ to amkeabhi123
constructor is method of class when we create the object then create the automatically constructor.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 07-04-2011, 01:11 PM
Loan2day Loan2day is offline
Member
 
Join Date: Jun 2011
Posts: 80
Loan2day is on a distinguished road
When a object is created, the variable of the objects must be initialized. Initialization of variable of object is done automatically when the object is created .The object is initialized at the time of creation of it by means of a special function. This special function is known as constructor. It is called as constructor because it constructs the value of data member of class
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 10-10-2011, 06:59 AM
vikramrandhawa vikramrandhawa is offline
Senior Member
 
Join Date: Sep 2011
Posts: 166
vikramrandhawa is on a distinguished road
A copy constructor is a special constructor in the C++ programming language creating a new object as a copy of an existing object.Copying of objects is achieved by the use of a copy constructor and an assignment operator. A copy constructor has as its first parameter a reference to its own class type. It can have more arguments, but the rest must have default values associated with them
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-07-2012, 12:10 PM
gaurav467 gaurav467 is offline
Senior Member
 
Join Date: Oct 2011
Posts: 166
gaurav467 is on a distinguished road
Constructor is a default member function available with a
class.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 03-06-2012, 12:58 PM
sandeep552 sandeep552 is offline
Senior Member
 
Join Date: Feb 2012
Posts: 221
sandeep552 is on a distinguished road
Constructor:-
A particular member function whose task is to initialize the object of class.

Last edited by sandeep552 : 03-06-2012 at 12:59 PM. Reason: Spell Mistake
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 03-15-2012, 08:02 AM
lucasyesher's Avatar
lucasyesher lucasyesher is offline
Senior Member
 
Join Date: Mar 2012
Location: New York, USA
Posts: 162
lucasyesher is on a distinguished road
Send a message via Skype™ to lucasyesher
However constructor name and class name are same and helpful to initialized the object of the class at the static scenario.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 05-10-2012, 12:59 PM
sonu sing sonu sing is offline
Junior Member
 
Join Date: May 2012
Location: Faridabad
Posts: 12
sonu sing is on a distinguished road
Send a message via Skype™ to sonu sing
In object-oriented programming, a constructor (sometimes shortened to ctor) in a class is a special type of subroutine called at the creation of an object....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 05-22-2012, 07:14 AM
maxsamuel maxsamuel is offline
Junior Member
 
Join Date: Mar 2012
Posts: 19
maxsamuel is on a distinguished road
When a object is developed, the different of the elements must be initialized. Initialization of different of product is done immediately when the product is developed .The product is initialized at a lot of length of technology of it through a exclusive work. This exclusive work is known as constructor. It is known as as constructor because it constructs the value of details individual of class
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:24 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
© 2004-2011 AffiliateSeeking. All rights reserved.