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
Get step-by-step solutions from verified subject matter experts
