Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.27 KB

oops_concepts.md

File metadata and controls

32 lines (28 loc) · 1.27 KB

Introduction To OPPS Concepts

OOPS is a particular programming approach to design a program
Some key concepts include in the OPPS is:--

1.Object And Class
2.Abstraction
3.Polymorphism
4.Inheritance
5.Reusability of Code 
  • Lets talk about each of the concept of the OOPS using an example of Stock Market

    Stock Example

    Here to make a stock class you should must know how to represent the stocks and what is class.

    Class

    A class is a use define data type. For better understanding of the class lets consider an example.
    Suppose a SN Grand is a hotel which consist of manager, waiter, cheif , customer, etc. In this hotel person with the name

  • Prashant is a Hotel Manager
  • Praneet is a Customer
  • Abhinav is a Chef
  • Ganesh is a Waiter
    If a Praneet comes inside the hotel before placing the order their will be conversion between Praneet who is customer with the waiter who is Ganesh

            Pranet :- Hello, Can I know the meals in the hotel
            Ganesh :- Sure Sir, This is our hotel menu card you can go throgh it to know the meals
       

    This menu card is what actually class is.