Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please help me with this question quickly . programming language : Java 2 . waiting..... :) undefined Part I Question 1 Implement the below interface
please help me with this question quickly .
programming language : Java 2 .
waiting..... :)
undefined
Part I Question 1 Implement the below interface and classes except the class NetworkDevice which you can assume it- code exists when you need to call it : > Similar +isSimilarlo: Object): boolean DataCenter - name: String nbDevices : int - devices: Device() Device #id: int #brand: String +DataCenter (name: String, maxNbDevices:int) +getDevices():Device[] +addDevice(d: Device): boolean +displayServers():void +toString():String +Device(all arguments) +toString():String Network Device Server -operating System Type: String -availableServices: String -nbOfPorts: int -powerOverEthernet: boolean +NetworkDevice(all arguments) +toString(: String //getters and setters +Server (all arguments) +toString(: String +addAService(service:String): boolean +findAServie(service:String): boolean 1/getters and setters A. Device Class (An Abstract Class) The toString method returns a String of the form "Id: ...,Brand: ....". B. Server Class It has two private attributes: o operating System Type: the type of the installed operating system (ex: Linux Windows, etc) o available Services: it is a string that contains all the installed services. It is of the following form: Servicel:Service2:Service3. Example: DHCP:DNS:MailService:WebServiceStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started