Open-Closed Principle
Open for Extension and Closed for Modification.
We understand this with simple user class
@startuml
class User {
+ id: int
+ age: int
+ name: string
}
@enduml
now I want to add new feature if the user is privileged capture the phone number to ...
gurupalaniveltech.hashnode.dev1 min read