Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on what is method and class in oops? within the OOPS forums, part of the Software Development category; What is method and what is class.what is difference between them.if any one knows please reply with examples....
|
|||||||
|
|||
|
hi Kalyani,
There is a "HAS A" relation between both. I can say that a class has a method. That is method is the member of the class. Regards, ABHIJIT |
|
|||
|
Re: what is method and class in oops?
Quote:
A method is a member function of a class .It consists of block of statements that returns some value to another method . A class is a user-defined datatype that consists of set of objects of similar type. is my reply upto the mark?? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can we use abstract method without using abstract class ? | karthikeyan_ramaraj | Java | 5 | 2 Weeks Ago 05:20 AM |
| Vector Class - add and addElement Method | adesh.khare | Java | 1 | 07-15-2009 07:59 AM |
| Why the start() method in the Thread class is not final? | rijus | Java | 0 | 05-19-2009 10:04 AM |
| QTP - Error on calling WMI Class Method | angelrich | QTP | 0 | 06-20-2008 09:24 AM |
| Difference Bettween Class.forName(classname)& new class name | prakashreddy.gade | Java | 1 | 05-22-2008 10:24 AM |