Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

abstract class  RSS feed

 
Mahesh Barik
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an abstarct clas called X which declare various methods
now it is subclassed say Y is the subclass
I want to call the methods in Y inside main() method
i will not use any other class for that matter

how is it done
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create an instance of Y and call the methods.
Unless I'm missing something subtle, this is not really an advanced question.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed. Moving...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!