Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Method 
 

In this section, we will explore the concept of method in the reference of object oriented programming techniques.

 

Method

                         

In this section, we will explore the concept of method in the reference of object oriented programming techniques.
As we earlier described in the topic class, a class have two major parts state and behavior. States are represented by variables and behaviors are defined by methods.

  1. Method : An brief introduction
    Methods perform the most important work in a class, object can't do anything without method. Some programming languages use reflexive data structures to do the same action, they have a complete set of data, but they don't have any behavior and due to this they depend on other functions.

                                                                     
  2. Method Invocation  
    After taking a brief look on methods, now the next question arises that, "what is method invocation?". There are two type of method in java object-oriented technique first one is the Instance method and the other one is the class method.
                                                                       
  3. Method Overloading  
    As we know that a method have its own signature which is known by method's name and the parameter types. Java has a powerful feature which is known as method overloading. With the help of this feature we can define two methods of same name with different parameters.
                                                                  
  4. Method Overriding  
    Overriding is another useful feature of object-oriented programming technique. It provide the facility to redefine the inherit method of the super class by a subclass. The method overriding is used to invoking the parent class method by a child class.
                                                                              
  5. Scope 
    A method's visibility is known as method scope. We can say that it defines whether a object can invoke as well as any subclass can override the method or not.

                         

» View all related tutorials
Related Tags: c programming ide class data time template object fun io objects methods classes method vi exec new instance id ai

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.