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
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
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.