Geeks Talk

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.

what is method and class in oops?

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....

Go Back   Geeks Talk > Software Development > OOPS
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

OOPS Object-Oriented Programming Concepts

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2009
Junior Member
 
Join Date: Sep 2009
Location: hyderabad
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
kalyani.atukuri is on a distinguished road
Smile what is method and class in oops?

What is method and what is class.what is difference between them.if any one knows please reply with examples.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-23-2009
Contributing Member
 
Join Date: Aug 2009
Location: bangalore
Posts: 30
Thanks: 11
Thanked 3 Times in 3 Posts
abhi981 is on a distinguished road
Wink Re: what is method and class in oops?

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
Reply With Quote
  #3 (permalink)  
Old 09-27-2009
Junior Member
 
Join Date: Sep 2009
Location: hyderabad
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
jyothi85 is on a distinguished road
Re: what is method and class in oops?

Quote:
Originally Posted by kalyani.atukuri View Post
What is method and what is class.what is difference between them.if any one knows please reply with examples.

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??
Reply With Quote
Reply

  Geeks Talk > Software Development > OOPS

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 08:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved