Question: Part a: Implement the concept of inheritance. Create 3 classes department, telecom and software. Department has class members: chairman (string), (string func) welcome, students(int) Telecom

Part a: Implement the concept of inheritance. Create 3 classes department, telecom and software. Department has class members: chairman (string), (string func) welcome, students(int) Telecom has member: batches (bool) Software has member: semester (int)

Display the following output by using above knowledge

Welcome to telecom department

Chairman of telecom department is ali shahzad There are 300 students in telecom department Telecom department has 5 graduate batches true

Welcome to software department

Chairman of software department is Hamza shah There are 100 students in software department 8th semester.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!