Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ help please Problem Description This phase of the project will establish two classes. Their specific implementation details are flexible, but they should meet the

C++ help please
Problem Description This phase of the project will establish two classes. Their specific implementation details are flexible, but they should meet the following requirements: NetworkObject This class called NetworkObject defines the abstract properties of an element of our network. Additional capabilities will be added to classes derived from this base class in order to power future projects. The class should contain at least the following private variables: int objectId The class should contain at least the following public methods:
NetworkObject(int objectId)
Constructor which sets the objectId when an object is created.
int getObjectId()
Returns the objectId variable
Server
This class is a dummy derived class to which we will add complexity in future projects. The class should inherit from the NetworkObject class (we will go into detail about inheritance in the 2/10 lecture). For now, it requires no additional functionality beyond a constructor method.
Other Requirements
In your main function, choose a way to store a number of NetworkObject objects . This may be an array, a vector, a linked list, etc, it is your design choice at this stage. The main function should then instantiate some objects and then print their objectIds using the functions and classes created above.

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_2

Step: 3

blur-text-image_3

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

Demonstrate three aspects of assessing group performance?

Answered: 1 week ago