Question: how to do this question publie class Project 1 private string cust; // Name of the cuatcanet public static void main (5tring [1 args) f.
publie class Project 1 private string cust; // Name of the cuatcanet public static void main (5tring [1 args) f. float totali Project myproject = new Project ( "Peter" );// create a project Servicel] service = [new Service ("Floor", 7000), // Create the first service new Service ("wal1", 5000)]7(1 Create the 5yatem,out-printin (myProject); // JV will call Project's toscring ( ) mechod syatem.out.printin("_......._); Syatem,out.println (service {0});. // h wil1 call gervice's tostring ( ) method total - service [0].getcharge 0 + servioe [1]-getcharge 0 ; il sum up the charge of aervices Bystem.out.printin (string.format ("rotal +10.2t, total) ) : (l print the total Dublic Project (arring custhane] f cust - eusthanet pablic string tostring (? return "Bil1 to: n + getcusco? 1 publie void setcust (string eusthame) Rtarvulalty beraplabie
Step by Step Solution
There are 3 Steps involved in it
It looks like you have a code snippet and youre asking for an explanation or how to work through it Lets break it down Correcting and Understanding the Code Here is a cleaner version of the code based ... View full answer
Get step-by-step solutions from verified subject matter experts
