mirror of
https://github.com/robindhole/fundamentals.git
synced 2025-09-13 12:02:39 +00:00
Adds code for OOP.
This commit is contained in:
@@ -22,3 +22,13 @@
|
||||
* [Subtyping - Mentor and Student as User](https://github.com/kanmaytacker/fundamentals/blob/master/oop/code/oop/src/main/java/com/scaler/lld/App.java#L18)
|
||||
* [Method overloading - `printInfo`](https://github.com/kanmaytacker/fundamentals/blob/master/oop/code/oop/src/main/java/com/scaler/lld/scaler/User.java#L26-L31)
|
||||
* [Method overriding - Overriding `printInfo` in Student](https://github.com/kanmaytacker/fundamentals/blob/master/oop/code/oop/src/main/java/com/scaler/lld/scaler/Student.java#L34)
|
||||
|
||||
## SOLID principles
|
||||
* [Bird - v0](https://github.com/kanmaytacker/fundamentals/blob/bird-v0/oop/code/oop/src/main/java/com/scaler/lld/bird/Bird.java)
|
||||
* `Bird - v1 - After fixing SRP and OCP`
|
||||
* [Bird Class](../code/oop/src/main/java/com/scaler/lld/bird/Bird.java)
|
||||
* [Parrot/Sparrow child classes](oop/src/main/java/com/scaler/lld/bird/Parrot.java)
|
||||
|
||||
### Assignment for SOLID - I
|
||||
* Find where [the code](oop/src/main/java/com/scaler/lld/questions/Invoice.java) violates SRP
|
||||
* Fix the code to make it adhere to SRP
|
Reference in New Issue
Block a user