Skip to main content
Tweeted twitter.com/#!/StackProgrammer/status/416835552651247616
added 13 characters in body
Source Link
Tulains Córdova
  • 39.5k
  • 13
  • 99
  • 155

I was trying to understand the difference between Open Closed Principle (OCP) and Dependency Inversion Princible (DIP).

Based on the R&Dresearch I've made on the internet so far, I came to the conclusion that 'DIP is one option through which we can achieve OCP'.

I'm II right on this  ?

Can you give me an example which doesn't follow DIP but follows OCP ?

I was trying to understand the difference between Open Closed Principle (OCP) and Dependency Inversion Princible (DIP).

Based on the R&D on internet so far, I came to the conclusion that 'DIP is one option through which we can achieve OCP'.

I'm I right on this  ?

Can you give me an example which doesn't follow DIP but follows OCP ?

I was trying to understand the difference between Open Closed Principle (OCP) and Dependency Inversion Princible (DIP).

Based on research I've made on the internet so far, I came to the conclusion that 'DIP is one option through which we can achieve OCP'.

I'm I right on this?

Can you give me an example which doesn't follow DIP but follows OCP ?

Clarification of some terms (use of full terms), added links to references and general question formatting
Source Link

I was trying to understand the difference b/w OCPbetween Open Closed Principle (OCP) and DIPDependency Inversion Princible (DIP). 

Based on the R&D on internet so far, iI came to the conclusion that 'DIP is one option through which we can achieve OCP',.

I'm I right on this ? 

Can you give me an example which doesn't follow DIP but follows OCP ?

I was trying to understand the difference b/w OCP and DIP. Based on the R&D on internet so far, i came to the conclusion that 'DIP is one option through which we can achieve OCP', I'm I right on this ? Can you give me an example which doesn't follow DIP but follows OCP ?

I was trying to understand the difference between Open Closed Principle (OCP) and Dependency Inversion Princible (DIP). 

Based on the R&D on internet so far, I came to the conclusion that 'DIP is one option through which we can achieve OCP'.

I'm I right on this ? 

Can you give me an example which doesn't follow DIP but follows OCP ?

Source Link
Jitendar
  • 381
  • 1
  • 2
  • 10
Loading