Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Abstract Classes

 
Swati Singhal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am new to this forum..so may ask silly questions...
I am a lil confused abt the answer of the following questions :
 
Sindhur Sat
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is C
not a: one of the methods is abstract, the whole class has to be abstract and Class is not a keyword in java its actually a class. I mean Class is a class
not b: non abstract methods must have bodies.
not d: class keyword required
Sindhur.
 
Swati Singhal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sindhur, i was actually confused between options b & c...
 
Swati Singhal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sindhur, but a non abstract method must have a method body... So what makes c the correct option... still a bit confused.
 
Swati Singhal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry ppl, i got the answer now... Sorry for the real stupid questions...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic