Q:

CONVERT SIMPLE customer UML CLASS DIAGRAM TO C# CODE

0

CONVERT the following customer UML CLASS DIAGRAM TO C# CODE

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Object_Oreineted_Example
{
    internal class Customer
    {
        private string name;
        private string address;
        private string phone;
        public Customer() 
        {
        }
        public void  setName( string n )
        {
            name = n;
        }
        public void  setAddress(string a)
        {
            address= a;
        } 
        public void setPhone (string p)
        {
            phone= p;   
        }
        public string getName()
        {
            return name;
        }
        public string getAddress()
        {
            return address; 
        }   
        public string getPhone()
        {
            return phone;
        }
    }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now