Difference between a method and a function A function is a piece of code that is called by name. It can be passed data to operate on (i.e. the parameters) and can optionally return data (the return value). All data that is passed to a function is explicitly passed. A method is a piece of code that is called by a name that is associated with an object. In most respects it is identical to a function except for two key differences: A method is implicitly passed the object on which it was called. A method is able to operate on data that is contained within the class (remembering that an object is an instance of a class - the class is the definition, the object is an instance of that data).
Popular posts from this blog
Bootstrap form validation The HTML : <form class="form-horizontal" action=" " method="post" id="reg_form"> <fieldset> <!-- Form Name --> <legend> Personal Information </legend> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label">First Name</label> <div class="col-md-6 inputGroupContainer"> <div class="input-group"> <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> <input name="first_name" placeholder="First Name" class="form-control" type="text"> </div> ...
How to create HTML mailer There are two fundamental concepts to keep in mind when creating HTML email: Use HTML tables to control the design layout and some presentation. You may be used to using pure CSS layouts for your web pages. Use inline CSS to control other presentation elements within your email, such as background colors and fonts . You remember a few things at the time of creating HTML email CSS style declarations appear below the body tag, not between the head tags. No CSS shorthand is used: instead of using the abbreviated style rule font: 12px/16px Arial, Helvetica , you should instead break this shorthand into its individual properties: font-family , font-size , and line-height . span s and div s are used sparingly to achieve specific effects, while HTML tables do the bulk of the layout work. CSS style declarations are very basic, and do not make use of any CSS files. Note:- If you want more...

Comments
Post a Comment