• Post Reply Bookmark Topic Watch Topic
  • New Topic

abstract class  RSS feed

 
Rajesh Goud kumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the main use of abstract class?

please give me a real time example
 
Campbell Ritchie
Marshal
Posts: 56595
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!