Define function and write about its purpose

Assignment Help Basic Computer Science
Reference no: EM131040586

Answer the questions (i) and (ii) after going through the following class : 

class BUS
{ private:
char Pname[30],TicktNo[20];
float Fare;
public:
BUS( ) //function 1
{ strcpy(Pname,"");
strcpy(TicktNo,"");
Fare=0; }
void Details( ) //function 2
{ cout<<Pname<<endl<<TicktNo<<endl<<Fare<<endl; }
BUS(char * name, char *tno, float N); //function 3
BUS(BUS &F); // function 4
};

  1. In OOP, what is function 3 referred to as? Also define this function.
  2. Define function 4 and write about its purpose?

Reference no: EM131040586

Questions Cloud

What are the hazards of going off the end : What are the hazards of "going off the end" of a list, an array, or a string. What are some strategies I could use to prevent this from happening, or to detect it?
What would the optimal basestock policy be : Suppose retailer demand each period was Normally distributed with average of 8 and standard deviation of 2. Backorders cost $2 per unit per period and excess inventory costs $1 per unit per period. The leadtime demand was 4 periods, which means that ..
Which of the components of transformational leadership : Which of the following statements regarding the relationship between transformational and transactional leadership is TRUE?
What are the hazards of going off the end : What are the hazards of "going off the end" of a list, an array, or a string. What are some strategies I could use to prevent this from happening, or to detect it?
Define function and write about its purpose : Answer the questions (i) and (ii) after going through the following class :
Dynamically allocated stack : Write functions to perform PUSH& POP operations in a dynamically allocated stack containing the objects of the following structure:
Two doctrines-generally prevent offer from being revoked : Which of the following are two doctrines that generally prevent an offer from being revoked?
The surui tribe of the amazon : Chief Almir of the Surui tribe of the Brazilian Amazon is using Google to help his tribe maintain its traditional way of life. In 1969, the Surui experienced their first contact with outsiders, who brought with them disease, violence, and death. T..
Dimensional array prime : Write a function TRANSFERP( int ALL[ ], int N) , to transfer all the prime numbers from a one dimensional array ALL[ ] to another one dimensional array PRIME[ ]. The resultant array PRIME[ ] must be displayed on screen.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Discuss your ability to generate the pareto frontier

Discuss your ability to generate the Pareto frontier in terms of the exponents you used in the compromise programming formulation. Which exponents worked satisfactorily for the complete Pareto frontier generation?

  Explain the term omniscience

Explain the term omniscience Explain the importance of autonomy in an agent Develop the task environment for an interactive language tutor

  Search the internet for information on itil

Minimum number of words 500, referencing with Harvard style and the number of references not less than three Academic Articles or books.

  Enter a decimal value

Enter a decimal value

  Discuss what makes a successful information security

Discuss what makes a successful information security awareness program and how a security awareness program can be one of an organization's most powerful protection strategies.

  Create a details element that displays the summary

Write an HTML5 element (or elements) to accomplish each of the following tasks: a. Students were asked to rate the food in the cafeteria on a scale of 1 to 10.

  How these models would facilitate a company in the country

Review the IT diffusion models, select two models, then compare and contrast how these models would facilitate a company in the country and business sector of your choice. Be sure to state your business sector. Then, explain how the IT diffusion m..

  Design and build a zoo organizer

You are to design and build a zoo organizer. The zoo organizer should keep track of a set of animals. The zoo organizer should be able to keep track of different sets of animals. The organizer only needs one set of animals open at a time. It should h..

  Display the result of dividing "y" by 0

It is also attatched in a word file too. This set of directions in Project 3-7 script produces some kind of expected output by creating this script called

  Unique ids of network adapters

Network adaptors are manufactured by many companies in many countries. How can these companies ensure no two adaptors will have the same MAC address?

  Refuses to comply with walmart''s request

Express you personal opinion in the essay below and answer the following questions and put them in the last paragraph and put  it in order or by number.1)  If a vendor or company refuses to comply with Walmart's request, is there anything Walmart?2) ..

  Find the sum of the 1st and the 31 term.

how many jackets must he have so that if he wore a different set of shirts and jeans each day, he could continue for 140 days before he would have to repeat a set.

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