Forums Register Login

abstract class

+Pie Number of slices to send: Send
what is the main use of abstract class?

please give me a real time example
+Pie Number of slices to send: Send
public abstract class Animal . . .
public class Lion extends Animal . . .
public class Dog extends Animal . . .
public abstract class Ruminant extends Animal . . .
public class Sheep extends Ruminant . . .
public class Goat extends Ruminant . . .

You need to find your way round the Java tutorials, here, for example.
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 598 times.
Similar Threads
usage of a class
A mock question
ABSTRACT
HttpServlet class
A question about container!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:23:33.