logo

Assignment On Object Oriented Programming With Java

This pass task involves a technical discussion and explanation of the code for a Stock Management System using Object Oriented Programming principles.

4 Pages570 Words40 Views
   

Added on  2022-10-08

Assignment On Object Oriented Programming With Java

This pass task involves a technical discussion and explanation of the code for a Stock Management System using Object Oriented Programming principles.

   Added on 2022-10-08

ShareRelated Documents
Programming
Object Oriented Programming with Java
Student Name –
Student ID -
Assignment On Object Oriented Programming With Java_1
Stock Management System
Here, the complete Java code has been presented for a Stock Management System using the
concept of OOPS ( Object Oriented Programming).
Description of the overall solution and working:
The class ‘warehouse’ stores the stock items as well as transactions list. The class ‘Stock Sale
Transaction’ stores the stock, price as well as quantity. The class ‘Stock Purchase transaction’
stores the stock, price as well as quantity. The class ‘stock adjustment transaction’ stores the
stock and the quantity. It helps to add or remove the stock. The class ‘stock’ stores the name,
code and quantity in stock for an item. The class ‘transactions’ is an abstract class. In class
‘program’, a menu is displayed and the user is asked to enter an option from 1 - 6 to choose
the desired action to be performed. Based on the option chosen by the user, the desired action
is performed ( using switch statement ).
Relation to key principles of object oriented
programming:
Abstraction:
It occurs when only few essential details are shown and other details are hidden from
the user. An abstract class is used for this. It cannot be used for the creation of objects.
In order to access it, it needs to be inherited from any other class.
Assignment On Object Oriented Programming With Java_2

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Class And objectives in Java Laguage
|13
|1461
|20

Object Oriented Programming: Inheritance, Encapsulation, Polymorphism
|11
|1451
|340

ICTPRG527 Apply Intermediate Object-Oriented Language Skills
|8
|1494
|69

Object Oriented Design for Genetic Algorithm Solver
|8
|1573
|93

Object Oriented Programming in Aviation Airlines
|8
|1302
|148

Assignment on Explaining Polymorphism
|11
|1647
|313