Skip to content

Commit b3fea7f

Browse files
committed
readme.md file updated
1 parent a0fbd97 commit b3fea7f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
# DesignPatternsJava9
1+
# Definition of inheritance
2+
Inheritance is a mechanism in which one object acquires all the properties and behaviours of the parent object. Inheritance allows programmers to create classes that are built upon existing classes, to specify a new implementation to maintain the same behaviour to reuse code.
3+
4+
# Issues with inheritance
5+
The main problem with implementation inheritance is that it introduces unnecessary coupling in the form of the "fragile base class problem" modifications to the base class implementation can cause inadvertent behavioral changes in subclasses, creates strong coupling and loose flexibility.
6+
7+
## DesignPatternsJava9
28
This repo consists Gang of Four Design patterns code on Java 9. Each branch in the repository has code of 1 design pattern. Switch repository to try out different design patterns.
9+

0 commit comments

Comments
 (0)