9- Throwing Exceptions
4:41
2 Luidsprekere
1 Hoofstukke
105 segmente
Luidsprekere
Hoofstukke
-
0:03Hoofstuk 1: So far we've only been handling or catching exceptions, but sometimes we want to throw an exception. 275s · Speaker 2
So far we've only been handling or catching exceptions, but sometimes we want to throw an exception. Let me show you an example. So in this package, the exceptions package, I'm going to add a new class called account. Here we need a method …