This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Overriding and Exceptions  RSS feed

 
faiza haris
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem with the code is that I want to try overriding in subclass with exceptions, and my instance
of subclass is giving me problems???Can someone help me with the code???

Faiza, I added UBB CODE tags to your source code. You can learn about UBB codes here. �Mapraputa
[This message has been edited by Mapraputa Is (edited November 04, 2000).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Faiza,
Assuming your source file name is "divkabaita.java", you just have to move the <code>public</code> modifier from the divby0 class to the divkabaita class.
Hope this solves the pb.
Cheers,
Beno�t
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!