Skip to content

Commit 2b4f3ea

Browse files
Merge pull request kunal-kushwaha#472 from Devesh225/patch-3
Removed parenthesis '()' from class declaration.
2 parents 953700f + dc81fd5 commit 2b4f3ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/17-oop/notes/overloading.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ versions of a method. When Java encounters a call to an overloaded method, it si
66
whose parameters match the arguments used in the call.
77
In some cases, Java’s automatic type conversions can play a role in overload resolution.
88

9-
class OverloadDemo(){
9+
class OverloadDemo {
1010
void test(double a){
1111
System.out.println("Inside test(double) a: " + a);
1212
}
@@ -57,4 +57,4 @@ As you can see, each time incrByTen( ) is invoked, a new object is created, and
5757
calling routine. Since all objects are dynamically allocated using new, you don’t need to worry about an object going
5858
out-of-scope because the method in which it was created terminates. The object will continue to exist as long as there
5959
is a reference to it somewhere in your program. When there are no references to it, the object will be reclaimed the
60-
next time garbage collection takes place.
60+
next time garbage collection takes place.

0 commit comments

Comments
 (0)