title: Real world example of OOPS
body: <p>I am very much curious to know the practical implementation of object oriented features like Polymorphism, inheritance, abstract and virtual classes.</p>
  
  <p>On internet I can see examples related to car, ball etc. but I didn't find anything related to a real world scenerio like for example</p>
  
  <p>I have a shopping website, which has 4 roles</p>
  
  <blockquote>
    <ol>
    <li><p><strong>Admin:</strong> who will watch/modify the
    site</p></li>
    <li><p><strong>Employee:</strong> Who are the employees of
    that site</p></li>
    <li><p><strong>Internet User:</strong> Who will buy the
    product</p></li>
    <li><strong>Whole sale dealer:</strong> Who will use the
    different interface on the same site
    to buy products in bulk.</li>
    </ol>
  </blockquote>
  
  <p>Each and every role can modify the product as per the need.</p>
  
  <p>Example: While ordering t-shirst user wants to put his text, color... etc</p>
  
  <p>Any suggestions as to, where I can use concepts like virtual class, abstract class, inheritance in it?</p>
  
  <p>Just curious to know how can it optimize the performance, reliability and scalability.</p>