Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you create an object of a class in a package?

Answer Posted / vipul dalwala

Say Pachage is My Package

package MyPackage;

sub method() {

}


Then U can create Object

$myobject = new MyPackage();

and u can call any method of object like:

$myobject->method();

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

939


What are the various advantages and disadvantages of perl?

895


Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?

961


Explain '->' in perl?

918


What does the’$_’ symbol mean?

999


Explain arrays in perl.

930


What are the advantages of perl programming?

990


How to get help for perl?

973


Explain substr function in perl?

1024


“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?

1002


What is perl pop array function?

926


Mention how many ways you can express string in Perl?

1006


what are steps to do to lock the sony ericsson mobile with password?

2199


Explain chomp?

920


How to remove a directory in perl?

982