This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Select the correct statements..  RSS feed

 
Mark Henryson
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had attended one test, in which the following question has been asked. I don't the answer for it.

Here is the question:



By the by, where we use native method and when we have to use it?
 
Hentay Duke
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abstract methods can not be static or private therefore the other two answers are correct.
 
ruba shanti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello;
the first and the 3d is wrong that we cannot use combination of two modifiers (static with abstract)or(private with abstract)
the second one is true
you can override the protected method (between child and parentclasses)
but sorry about the native method ;icant reply;





 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!