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 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 ?...
|
|||||||
|
|||
|
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.
|
|
|||
|
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 |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |