What is ref keyword & out keyword?

1 Answer

Answer :

Refrence Variable “must” be initialized before it is passed into a method.

Related questions

Description : What is Interface?

Last Answer : An Interface is a group of constants and method declaration interface like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation

Description : How many types of Access Modifiers?

Last Answer : Public – Allows the members to be globally accessible. Private – Limits the member’s access to only the containing type. Protected – Limits the member’s access to the containing type and all classes derived from the containing type. Internal – Limits the member’s access to within the current project

Description : Whait is Method overriding?

Last Answer : Method overriding occurs when child class declares a method that has the same type arguments as a method declared by one of its superclass. By declaring base class function as virtual, we allow the function to be overridden in any of derived class

Description : What is a Method Overloading?

Last Answer : Method with same name but with different arguments is called method overloading

Description : What is Polymorphism?

Last Answer : Polymorphism means same operation may behave differently on different classes. Example : 1. Method Overloading and Method Overriding

Description : Is .NET C# supports Multiple inheritance?

Last Answer : Multiple inheritance of classes is not allowed in C#. but In C# you can implements more than one interface, thus multiple inheritance is achieved through interface

Description : Can you allow a class to be inherited, but prevent the method from being overridden?

Last Answer : Yes. Just leave the class public and make the method sealed

Description : Can you prevent your class from being inherited by another class?

Last Answer : Yes. The keyword “sealed” will prevent the class from being inherited.

Description : What are Sealed Classes in C#?

Last Answer : The sealed modifier is used to prevent derivation from a class

Description : What is an Inheritance?

Last Answer : The process of sub-classing a class to extend its functionality is called Inheritance. Advantage : It provides idea of reusability.

Description : What is Value Type and Reference Type?

Last Answer : A variable is value type or reference type is solely determined by its data type. Ex: int, float, char, decimal, bool, decimal, struct, etc are value types As name suggest Reference Type stores reference to the ... ; Y = X; Console.writeline(Y.value); Y.value = 50; Console.writeline(X.value);

Description : What is Enumeration?

Last Answer : Enumeration improves code readability. It also helps in avoiding typing mistake

Description : What is a Garbage collection?

Last Answer : Garbage collection is the mechanism that reclaims the memory resources of an object when it is no longer referenced by a variable. And Net Runtime performs automatically performs garbage collection

Description : What is the difference between the destructor and the Finalize() method? When does the Finalize() method get called?

Last Answer : Finalize() corresponds to the .Net Framework and is part of the System.Object class. Destructors are C#'s implementation of the Finalize() method. The functionality of both Finalize() and the destructor is the same

Description : What is Destructor?

Last Answer : A destructor is just opposite to constructor. it has same as the class name, but with prefix ~ (tilde). They do not have return types

Description : What is Finalize() Method of Object class?

Last Answer : Each class in C# is automatically (implicitly) inherited from the Object class which contains a method Finalize(). This method is guaranteed to be called when your object is garbage collected

Description : What is Static Constructor?

Last Answer : In C# it is possible to write a static no-parameter constructor for a class. Such a class is executed once, when first object of class is created. Class MyClass { static MyClass() { //Initialization Code for static fields and properties. } }

Description : What is Static Method of the class?

Last Answer : Methods that you can call directly without first creating an instance of a class. 1. As static methods may be called without any reference to object

Description : What is static member of a calss?

Last Answer : Static members belong to the whole class rather than to individual object Static members are accessed with the name of class rather than reference to objects

Description : What is Constructor?

Last Answer : A constructor is a special method whose task is to initialize the object of its class. 1. It is special because its name is the same as the class name 2. They do not have return ... can call the base class constructor 4. Constructor is invoked whenever an object of its associated class is created

Description : Whar are properties?

Last Answer : Attribute of object is called properties Example:- A car has color as property.

Description : What is an encapsulation?

Last Answer : Wrapping up of data and function into a single unit is known as Encapsulation.

Description : What is an Object?

Last Answer : Instance of Class is called object. An object is created in memory using keyword “new”.

Description : What is a Class?

Last Answer : A user-defined data structure that groups properties and methods. Class doesn’t occupies memory.

Description : Can a property be a ref or out parameter?

Last Answer : A property is not classified as a variable – it can’t be ref or out parameter. 

Description : Define what is the difference between “out” and “ref” parameters in C#?

Last Answer : “out” parameter can be passed to a method and it need not be initialized whereas “ref” parameter has to be initialized before it is used.

Description : Football Ref bites the turf- were there slurs besides alleged bad calls?

Last Answer : In my opinion, I think the students should be suspended and charged with assaulting a person. No matter what the ref said or did, they should not have hurt him. They had helmets and pads on. The ref ... coach really is involved too, he needs to lose his job. Never, never coach kids to hurt others.

Description : How does a hockey ref call holding and embellishment on the same play?

Last Answer : That's how the NHL has always called it. It has never made sense and is annoying as hell since a player could use this to draw a penalty against the best player on the ice while they are the worst ... one of best players on your team, that's more advantageous to your team and not off-setting at all.

Description : how to make robuxman its easy all you have to do is go thererbxbo ost. com/# /ref=bmPWRjust do surveys and get points then redeem no private info is acually being asked ight cya?

Last Answer : Global network is

Description : Instant / By The Ref / ch Instant If / By place of the 'Ref' is. What's an example ?

Last Answer : Accurate.

Description : How to write in BBC fly app ? https://bbcfly.com/bn/ref/Atik2020A You can earn money by writing on this site. But I can't find the option where to write.

Last Answer : For this you need to register first. After that you have to enter your profile. Enter the article to see the profile. Click there to write.

Description : who can i get my samsung ref. to get below 57 degrees?

Last Answer : who can i get my Samsung ref. to get below 57 degrees?

Description : Sound intensity level is ________. A. 10 log I/I(ref) B. 10 log I(ref)/I C. 30 log I/I(ref) D. 20 log I/I(ref)

Last Answer : A. 10 log I/I(ref)

Description : What is REF relay?

Last Answer : It is restricted earth fault relay. When the fault occurs very near to the neutral point of the transformer, the voltage available to drive the earth circuit is very small, which may not be ... of the transformer is restricted to cover only around 85%. Hence the relay is called REF relay.

Description : Why REF is provided in the LV side of SUT and UT? 

Last Answer : The LV sides of the two transformers are earthed through the resistance. This will limit the flow of current in case of LV earth fault. Hence the differential protection may not act for a LV earth fault. Hence ref protection is provided. 

Description : Why stabilising resistor in REF or residual E/F scheme? 

Last Answer : Required against CT saturation under heavy through fault currents.  

Description : Why REF is now is used for HV side also in GT/SUT?

Last Answer : The E/F setting of differential is poor.  

Description : How can I subscribe news by E-mail with the keyword search??

Last Answer : We don’t know what will work for you in China.

Description : What is the best tool to check the keyword ranking in Google SERPs?

Last Answer : answer:Kinda surprised no one responded to this one. Not too many SEO's round these parts. Anyway, your headline question doesn't exactly make sense. Keywords don't rank in the Google SERPs, websites do. ... seorush, seoquake, or many of the others you'd find by typing in SEO toolbars into Google

Description : Is there a program to search through my current window for a keyword?

Last Answer : In (most?) browsers that would be Ctrl + F.

Description : I would love my webpage to show up on google searches when using a certain keyword (not in the advertisement space), but i also don't want to change anything visible on the page. is there anything i can do?

Last Answer : meta tags, give this a read: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=79812

Description : What is Keyword Stuffing?

Last Answer : http://www.keywordsolutions.co.uk/illegal-seo.php It is not an acceptable practice.

Description : What's the best tool for researching keyword popularity in google?

Last Answer : Do you mean what are popular searches? - http://www.google.com/trends Do you mean how to find what keywords on your site are popular? - http://www.google.com/webmasters/tools/ Or, do you mean finding what your results position is for different keywords?...

Description : Do search engines still ignore keyword meta tags?

Last Answer : Yes. The main (big) ones do, at least.

Description : How is a keyword search different from subject search? -Technology

Last Answer : A keyword is simply a word that shows up somewhere in a record: it can be part of name, a subject, or a title, or appear in the table of contents.This is different from a subject search, which looks for the word only in the subject heading field.

Description : Explain the Boolean operators and their impact on search result while connecting two keyword “A” and “B”. -Technology

Last Answer : a. Introduction/ definition of Boolean Operators, And Or Not.b. If A, B two key words are connected with OR operator and made the string, then the search result would be all those records which have ... since it has key word B so it will not be shown in the search result.Example . . .

Description : How to to determine if a string is a Python keyword. -Web-Development

Last Answer : answer:

Description : It is a commercial unit where salespeople work. 

Last Answer : Have you ever tried the term "boss training"? I think there are good results for it on Google. True, it’s not profession specific, but I think you can find good advice on this in general. For this keyword, for example, THIS is the first result on the page, it's worth reading through.    

Last Answer : Need Answer