Docsity

Object-Oriented Programming Lab Exercise - Invoice and Employee Classes, Lab Reports of Object Oriented Programming

Partial preview of the text

Download Object-Oriented Programming Lab Exercise - Invoice and Employee Classes and more Lab Reports Object Oriented Programming in PDF only on Docsity!

LAB 01

OBJECT ORIENTED PROGRAMMING

Student Name: FAWAD AZAM ROLL NUMBER: 17 Session: Fall 2021 SUBMITTED TO ..JAHANGIR SAIB

DEPARTMENT OF SOFTWARE ENGINEERING

UNIVERSITY OF MALAKAND

Lab Task 1.1: Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four data members—a part number (type string), a part description (type string), a quantity of the item being purchased (type int) and a price per item (type int). Define a display method to print all this data. Create an object of the class to demonstrate this program.