Question

C# Please just annswer all questions. if you going to answer 1 or 2 questions only...

C#

Please just annswer all questions. if you going to answer 1 or 2 questions only please don't answer any. Thank you


1) To make it easy to test a class library, you can:

a.   Make sure that all of the classes require only the System namespace
b.   Put references to all of the .NET namespaces in the library
c.   Add one class to the library at a time
d.   Develop the class library project within a solution that contains a Windows Forms project

2) What is the difference between ref and out keywords? (4 Points)

3) What is the difference between Interface and Abstract Class?

Homework Answers

Answer #1
  1. As you know class libraries compile to .dll files and not as -exe you cannot run your project directly instead you need to create another project that obviously compile down to .exe and it is addressed to your class library.

Initially you go to file-new project and if you choose to test your project using console Application you need to choose Visual C#->Windows->Console application as your application type. you can choose any name for your project .In case you are working on a class library called formula evaluator just name your console application as Formula evaluatot test. you must assure that it reside in the same place where your Class library project is.now it open as program.cs file and to ensure that new project is linked with Class library you need to right click on the console and choose Add-refrence and then go to projects-solution in left pane and check the checkbox of your class library and then choose by right click on console -set as startup project and after clicking start button your console application will run.

Hence the correct option is d.

2.Characteristics of Ref keyword:

a) Initializatin of the parametrs is must before they pass to ref

b)Initialization is absolutely unnecessary before returning it to the calling method

c)if the called method also has to change the value of the passed parameter then passing the value through ref keyword is extremely useful

d) flow of data is bidirectional

Characteristics of Out keyword

a)Initialisation of the parameters is not must before they pass to out

b)Initialization is necessary before returnin g it to the calling method

c)It is useful to declare parameter through out if method returns multiple values

d) flow of data is unidirectional

3)Abstract class contains different type of modifiers like public,private,protected.performance is fast,a class can use only one abstract class On the contrary interface contain only public modifiers,performance is slow,A class can use multiple interface

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1-Please answer only five of the following seven questions that you are interested in or that...
1-Please answer only five of the following seven questions that you are interested in or that may be of value to you. Research the topics thoroughly using valid, reliable sources. If you answer more than five questions only the first five answers will be marked. 2-Each student will prepare a 10 page research paper (2-3 pages for each question): double-spaced, Times New Roman and 12-point font. 3-Originality is a “must” in research. Therefore, use your own words when answering questions...
1-Please answer only five of the following seven questions that you are interested in or that...
1-Please answer only five of the following seven questions that you are interested in or that may be of value to you. Research the topics thoroughly using valid, reliable sources. If you answer more than five questions only the first five answers will be marked. 2-Each student will prepare a 10 page research paper (2-3 pages for each question): double-spaced, Times New Roman and 12-point font. 3-Originality is a “must” in research. Therefore, use your own words when answering questions...
Please Answer all question please don't answer just one question if you can't all. Answer all...
Please Answer all question please don't answer just one question if you can't all. Answer all please. 6. Exxon Mobil has preferred shares with a yield of 5.14%. If the quarterly dividend is $1.92, what is the value of a share? 7. You have accumulated $1,145 in debt by buying things on Amazon during quarantine.  The minimum monthly payment is $22, If you make only the minimum payment, it will take you 94 months to pay it off. How much total...
Please answer the following questions. (Answer only if you are really sure). Please don't guess What...
Please answer the following questions. (Answer only if you are really sure). Please don't guess What is true regarding the IEEE 802.11 WLAN standard? a. WLANs operate in the licensed operating frequencies, therefore data collisions do not occur. b. Since 802.11 WLANs implement DSSS and OFDM, there is no need for a collision avoidance mechanism. c. The 802.11 Point Coordination Function (PCF) is an optional feature that enables the WLAN to operate as a centralized access network. d. 802.11 networks...
please answer with explaination, thank you! 1) if you were to synthesize a library of all...
please answer with explaination, thank you! 1) if you were to synthesize a library of all possible random hexamers, how many unique oligonucleotides would you have?
Please answer all questions associated with the discussion. Some are opinion-based and just require that you...
Please answer all questions associated with the discussion. Some are opinion-based and just require that you weigh in with your thoughts or perspective. 1) Why didn't Barnum and Bailey create the Cirque de Soleil?
Please answer all questions associated with the discussion. Some are opinion-based and just require that you...
Please answer all questions associated with the discussion. Some are opinion-based and just require that you weigh in with your thoughts or perspective. 1) Why didn't Barnum and Bailey create the Cirque de Soleil?
PLEASE ANSWER ALL QUESTIONS ! 1. When performing a Chi-Square test, what is the critical value...
PLEASE ANSWER ALL QUESTIONS ! 1. When performing a Chi-Square test, what is the critical value between the accept and reject regions for a test with 5 classes and 25 observations at the 5% level of significance? Select one: a. 11.070 b. 2.87 c. 2.60 d. 9.488 2. True or False: A hypothesis is a statement about a population developed for the purpose of testing. Select one: True False 3. If you ACCEPT the null hypothesis while performing a Chi-Square...
Project 2 statement Please write this in JAVA. Please read this entire statement carefully before you...
Project 2 statement Please write this in JAVA. Please read this entire statement carefully before you start doing anything… This project involves implementing a simple university personnel management program. The program contains two different kinds of objects: students and faculty. For each object, the program stores relevant information such as university ID, name, etc. Different information is stored depending on the type of the object. For example, a student has a GPA, while a faculty has a title and department...
Area 4: Management Please answer the following questions in a succinct and concise manner. Each answer...
Area 4: Management Please answer the following questions in a succinct and concise manner. Each answer should yield about 3-5 sentences. How would you explain the difference between Transactional and transformational leaders? Describe the major functions of Managers. Define SWOT analysis and explain how to apply it in a business situation or setting. Area 5: Management Information Systems Please answer the following questions in a succinct and concise manner. Each answer should yield about 3-5 sentences. What are the two...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT