0% found this document useful (0 votes)
7 views2 pages

CSL 210 Lab07 Inheritance 14112024 093310pm

Lecture 7

Uploaded by

arslanzero234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

CSL 210 Lab07 Inheritance 14112024 093310pm

Lecture 7

Uploaded by

arslanzero234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CSL-210: Object Oriented

Programming
Semester BS CS – 02
Fall 2024

In this lab, the following topics will be covered:

1. Inheritacen (in Java)


2. Exercise for practice

Exercises

Exercise 1

The UML diagram of a system is given that contains the following classes.Write Java code for these
classes.

Imlement all classes given in UML diagram.


Create Driver class named as Inheritance_1. Create proper Objects of all classes as follows
• Create Two objects of Staff class
• Create Two Objects of Faculty Class
• Create Three Objects of Course class
Assign each Faculty courses of your choise and properly display all the information of Faculty,
assigned courses and staff members.
Department of Computer Sciences Semester BSCS 2
CSL-210 Object Oriented Programming Lab 07: Inheritance
Exercise 2

The UML diagram of a Bank Account system that contains the following classes.Write Java code for
these classes.

Imlement all classes given in UML diagram.


Create Driver class named as Inheritance_2. Create proper Objects of all classes as follows
• Create three objects of Member class. Two of which have current account and one has
saving account
And properly display all the information

Department of Computer Sciences Semester BSCS 2


CSL-210 Object Oriented Programming Lab 07: Inheritance

You might also like