Answered step by step
Verified Expert Solution
Link Copied!

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..... :)

image text in transcribedundefined

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:WebService

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions