Skip to content

Commit 1f29454

Browse files
Merge pull request amitshekhariitbhu#56 from anukools/patch-1
Useful Link for composition over inheritance
2 parents de5f095 + de925c2 commit 1f29454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
* Can you list 8 primitive types in java?
383383
* Why would you not call abstract method in constructor?
384384
* What is the difference between iterator and enumeration in java?
385-
* Do you agree we use composition over inheritance?
385+
* Do you agree we use composition over inheritance? ([Composition vs Inheritance)] [https://www.journaldev.com/12086/composition-vs-inheritance])
386386
* When would you make an object value final?
387387
* What are these `final`, `finally` and `finalize` keywords?
388388
- `final` is a keyword in the java language. It is used to apply restrictions on class, method and variable. Final class can't be inherited, final method can't be overridden and final variable value can't be changed.

0 commit comments

Comments
 (0)