GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Engineering  >  Mechanical Engineering
Go To First  |  Previous Question  |  Next Question 
 Mechanical Engineering  |  Question 2 of 70    Print  
what is the difference between class and method

  
Total Answers and Comments: 4 Last Update: February 05, 2007     Asked by: ramanareddymca 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 27, 2006 13:35:22   #1  
Abhinesh K Desai        

RE: what is the difference between class and method

A class defines the structure and behavior (data and code) that will be shared by a set of objects. Each object of a given class contains the structure and behavior defined by the class, as if it were stamped out by a mold in the shape of the class.

When you create a class, you will specify the code and data that constitute that class. Collectively, these elements are called members of the class. Specifically, the data defined by the class are referred to as member variables or instance variables. The code that operates on that data is referred to as member methods or just methods.

(If you are familiar with C/C++, it may help to know that what a Java programmer calls a method,

a C/C++ programmer calls a function.)

 


 
Is this answer useful? Yes | No
August 27, 2006 13:42:32   #2  
karan kapoor        

RE: what is the difference between class and method

The behavior and interface of a class are defined by the methods that operate on its instance data.


 
Is this answer useful? Yes | No
February 05, 2007 05:07:18   #3  
kannankumaraswamy        

RE: what is the difference between class and method
Gnerally class and method is one of the time management technique which deals with management of data sheets route sheet. class is the method for the appraisal of workers and method is the technique used for the appraisal of mechinery
 
Is this answer useful? Yes | No
February 05, 2007 05:12:33   #4  
kannankumaraswamy        

RE: what is the difference between class and method
one is montig class and other is implex class. the methods of class abstract are calibration method and indication method
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape