Practical Slip 29 - 2019 Pattern

C++:


B) Create a C++ class Visiting Staff with data members Name, No_of_Subjects, Name_of_Subjects[],Workinghours, TotalSalary. (Number of subjects varies for a Staff).Write a parameterized constructor to initialize the data members and create an array for Name_of_Subjects dynamically. Display Visiting Staff details by calculating salary. (Assume remuneration Rs. 300 per working hour) [Marks 25] 


PHP:


B) Write a PHP Script to create a super class Vehicle having members Company and price. Derive 2 different classes:

LightMotorVehicle (members — mileage)

HeavyMotorVehicle (members — capacity-in-tons).


 

Post a Comment

0 Comments