A constructor is a special type of function that gets called every time you initialize a class, constructor has the same name as class name. Constructor has no return type not even void. We can pass the parameters to the constructor. -this() is used to invoke a constructor of the same class. -super() is used to invoke a super class constructor. Constructor is called immediately after the object is created before the new operator completes. For example, say you have this class called Person:
class Person
{
public Person ()
{
Console.WriteLine("We're making a new person");
}
}
Now you can create a new object of type Person, like this:
Person Tim= new person();
The program will write the line "We're making a new person" to the screen.
Ajax to JSR 168 Portlets
-
Good article on *Best Practices for Applying AJAX to JSR 168 Portlets
http://developers.sun.com/portalserver/reference/techart/ajax-portlets.html*
0 Comments:
Post a Comment