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.

can we use abstract method without using abstract class ?

This is a discussion on can we use abstract method without using abstract class ? within the Java forums, part of the Software Development category; can we use abstract method without using abstract class ?...

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

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2008
Junior Member
 
Join Date: Aug 2008
Location: trichy
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
karthikeyan_ramaraj is on a distinguished road
Arrow can we use abstract method without using abstract class ?

can we use abstract method without using abstract class ?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2008
Junior Member
 
Join Date: Aug 2008
Location: chennai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
vivegabharathi is on a distinguished road
Re: can we use abstract method without using abstract class ?

No we can not use abstract methods with out abstract class.If u define one method as absract automatically the class having that method become abstract.
Reply With Quote
  #3 (permalink)  
Old 08-12-2008
Junior Member
 
Join Date: Aug 2008
Location: chandigarh
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
vini.rana is on a distinguished road
Re: can we use abstract method without using abstract class ?

no we cant use abstract method without using absract class..
the reason is that
every abstract class must have abstract methods
Reply With Quote
  #4 (permalink)  
Old 09-11-2009
Junior Member
 
Join Date: Sep 2009
Location: india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kohisathya_07 is on a distinguished road
Re: can we use abstract method without using abstract class ?

i want the answer for the title
Reply With Quote
  #5 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Oct 2009
Location: bangalore
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
elangobabu is on a distinguished road
Re: can we use abstract method without using abstract class ?

NO u cant use abstract method with out abstract class.
Bcz if we write an abstract method in a class it automiticaly become abstract class if we does not make it as abstract class then it causes to compile time error .....

reason: assume we written a class as non abstract and it has abstract method then we can create instance for that class but that class contain unimplemented method so we cant create instance for that class.......thats y we make that class as abstract.......
for abstract class we cant create instances.....ok
Reply With Quote
  #6 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Nov 2009
Location: pune
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ishtiyaque_n is on a distinguished road
Red face Re: can we use abstract method without using abstract class ?

No. You should declare a class abstract if you declare a method as abstract.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

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
Difference between interface and abstract class? are they both same mahesh9920 OOPS 29 4 Weeks Ago 08:18 AM
Can a final interface has an abstract method? kaushalksharma Java 4 07-28-2008 03:36 AM
HttpServlet abstract class chandra.mr Java 2 03-24-2008 02:55 AM
difference between abstract class and interface manipalreddy.s Java 12 10-25-2007 07:06 AM
Abstract Class Situation Geek_Guest Java 7 10-24-2007 12:43 AM


All times are GMT -4. The time now is 10:57 AM.


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