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, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
You know the right answer?
Make a Class called ‘Customer’ with following specification: • Create 2 Class Members - custId and...
Questions
question
Mathematics, 24.12.2021 03:10
question
Mathematics, 24.12.2021 03:10
question
Mathematics, 24.12.2021 03:10
Questions on the website: 13722363