Answer the following questions in picture two pictures are attached one contains the program while other contains the questions The questions provided in 2nd picture are supposed to be answered according to the program provided in picture no 1 Answer the part a of question in 6 to 7 lines minimum

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question

Answer the following questions in picture two pictures are attached one contains the program while other contains the questions

The questions provided in 2nd picture are supposed to be answered according to the program provided in picture no 1

Answer the part a of question in 6 to 7 lines minimum 

Q2. Consider the following class code (assume that all the header files have been included):
class gene
{
public:
gene( );
gene(string n, string cl);
string get_genename( ); //required the user to input the gene name.
void print( );
private:
string name;
string chromosomal_location;
};
Transcribed Image Text:Q2. Consider the following class code (assume that all the header files have been included): class gene { public: gene( ); gene(string n, string cl); string get_genename( ); //required the user to input the gene name. void print( ); private: string name; string chromosomal_location; };
string name;
string chromosomal_location:
}3;
a. Define the class gene.
b. What kind of function overloading is achieved in this code?
c. Define the constructor gene(string n, string cl) in such a way that user will input the
name of the gene, which will be assigned to the variable "name".
Transcribed Image Text:string name; string chromosomal_location: }3; a. Define the class gene. b. What kind of function overloading is achieved in this code? c. Define the constructor gene(string n, string cl) in such a way that user will input the name of the gene, which will be assigned to the variable "name".
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning