Following class definition

Assignment Help Basic Computer Science
Reference no: EM13163513

Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):

Example: Node* read_next(){return next;} takes in nothing as argument and returns a pointer of type Node.

class Node {

private:

char element;

Node* next;

public:

Node(char e){element=e, next=NULL;}

Node(char e, Node* N){

{element=e, next=N;}

void set_element(char e) {element=e;}

char read_element() {return element;}

void set_next(Node* N) {next=N;}

char& ref_element() {return element;}

Node*& ref_next() {return next;}

};

a. Node(char e, Node* N){element=e, next=N;}

a. Arguments:

b. Return:

b. void set_element(char e) {element=e;}

a. Arguments:

b. Return:

c. void set_next(Node* N) {next=N;}

a. Arguments:

b. Return:

d. char& ref_element() {return element;}

a. Arguments:

b. Return:

e. Node*& ref_next() {return next;}

a. Arguments:

b. Return:

Reference no: EM13163513

Questions Cloud

What is the significance of the subjective data : What is the significance of the subjective and objective data provided with regard to follow-up diagnostic/laboratory testing, education, and future preventative care? Provide rationale for your answer.
Find calories and joules lost : find calories and joules lost when 75.0 g of water H20 cools from 86.4 degrees celsius to 2.1 degrees celsius.
Uses a 2-d array to store the highest and lowest temperature : Write a program that uses a 2-D array to store the highest and lowest temperatures for each montjh of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of ..
. write down each interaction with smartphone : Consider your smartphone as a system and use its calendar to set a calendar event with a reminder for your birthday. Write down each interaction between you and your smartphone as a scenario. Record all the interactions, including any feedback the sm..
Following class definition : Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):
Primary comparative financial statements : Based upon your analysis in part a, does teh company's liquidity appear to have increased or decreased during the most recent fiscal year?
Ordering a burrito at a fast food mexican restaurant : Draw an activity diagram for ordering a burrito at a fast food mexican restaurant (e.g. Chipotle or Qdoba)
Vehicle in vehicle.java : Create a class called Vehicle in Vehicle.java with instance variables make (such as Ford, GM, Chrysler, Toyota, or Honda), year, and horsepower (200, 300, and 400). Add the necessary constructor and set and get methods.
State hydrocarbons are often reacted with steam : Hydrocarbons are often reacted with steam to form H2, as shown for propane: C3H8(g) + 6 H2O(g) 3 CO2(g) + 10 H2(g) Calculate Kp for this reaction at a particular temperature

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Is it beneficial to give young children with computers

After reading information under heading Statuses, explain and provide the example of each of the following as each applies to you and your life.

  Compare activity of disk required for each of the relational

Compare the activity (quite theoretical) of the disk (in number of bytes) required for each of both relational. Indicate the advantages and the inconveniences of the new relational scheme.

  Calculate present value of future earnings

Why do we need to calculate the present value of future earnings? A company can invest $100,000 to develop a new system, or it can put that amount into a second best alternative investment getting 10 percent.

  Deduce closed-form expression-estimates-linear regression

In weighted least-squares linear regression, we have weight ri corresponding to each data measurement. Deduce closed-form expression for estimates of w and b which minimize objective function.

  Describe factors having greater trust in e-business

Describe the factors which would contribute to you having greater trust in e-business. Do you look for trust seals when shopping online?

  Asynchronous transaction processing mode

When operating in an asynchronous transaction processing mode, what information must be present in both the pending request and the received response messages for the response to be exclusively matched to its associated pending request?

  Advantages and disadvantages of virtual offices

Write down the advantages and disadvantages of virtual offices, including telecommuting? Reply this question twice-once from the point of view of employee, once from the point of view of manager.

  Distinguish online learning with classroom learning

Write the exploratory essay in which you distinguish online learning with classroom (on-ground) learning. Your estimation may incorporate preparation time.

  Find standard deviations

A small bank that heretofore did not use a scorecard wanted to determine whether a score-card would be advantageous.  find standard deviations.

  The authentication process in a synchronous token system

Describe how the Kerberos authentication process work and outline the main components within the Kerberos environment, their respective functions and the level of security provided by Kerberos. Draw a diagram supporting your explanation Explain..

  Explaining database system of facebook and google

Does Facebook and Google use same database system? Facebook seems to run with the android platform using gmail address to retain information for user such as phone numbers and contacts.

  How computer system compares to state-of-the-art system

Write down 350- to 700-word paper in APA format which addresses the following items: How computer system compares to state-of-the-art system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd