subject
Engineering, 01.06.2021 21:00 babycakez3500

Make a Class called ‘Customer’ with following specification: • Create 2 Class Members - custId and custName and hide these variables by implement Encapsulation
• Define a print method which prints the custName
• Define a static variable custCount. This contains total count of customers

Make another Class, called, Main Program. In this class
• Create 2 instances (objects) of Customer class
• Increment the custCount variable with the creation of each object
• Assign values to custId and custName through setter methods.
• Call the print method with both objects, which prints custName

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
You know the right answer?
Make a Class called ‘Customer’ with following specification: • Create 2 Class Members - custId and...
Questions
question
Health, 09.02.2021 04:30
question
Health, 09.02.2021 04:30
question
Mathematics, 09.02.2021 04:30
Questions on the website: 13722362