answersLogoWhite

0


Best Answer

A function is a method that returns a value other than void. Methods includes functions, subroutines, constructors, destructors, and properties.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Difference between virtual methods and non virtual methods in c sharp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between nails and bolts?

Nails are sharp pointed and are hammered into wood. Bolts are threaded and are inserted into drilled holes in metal or wood or plastic and a nut is screwed on the threads to hold the bolt in place.


Difference between java and net?

Microsoft has developed the software .net for the purpose of creating the (Active Server Pages) . There are three languages that can be used in the .net packages. 1. C# (Specially designed for .net) 2. VB. 3. J# (J Sharp) So Java is a language and the .net is a package.


What is override keyword in c sharp?

Operator Overloading is a Polymorphism concept. Standard unary and binary operators like (+, -, *, /, %, &, |, ) have a predefined implementation that describes their behavior when applied on operands. However using operator overloading we can provide additional meanings to these operators.For example we can add two integers using a + b. However the + operator cannot be used to add two objects for example two vectors. For this we need to overload the operator '+' so as to implement it toadd two vector objects.refer related links for having a look at the example.


Can methods in c sharp declared outside the class?

C# is a completely object-oriented language, everything is an object. Every datatype, is a superset of the object class. I'm sorry to say, but every method must be declared inside of a class. :(


What is the difference between destructors in c plus plus and c sharp?

In C# only class instances can have a destructor, whereas both class and struct instances can have a destructor in C++. While syntactically similar, a C++ destructor executes exactly as written, whereas a C# destructor merely provides the body of the try clause of the class' finalize method.

Related questions

What is the difference between abstarct class and virctulfunction in C sharp?

They are not comparable, but may have some relationship between them.An abstract class is a class, while a virtual function (or method) is a method. A method must exist within a class. Hence, a class has methods, and the methods may be defined as virtual functions.A virtual function must be defined in a class, but that class does not have to be an abstract class. However, the purpose of a virtual function in C# is to provide a default behavior/implementation, while allowing the derived class to override that default implementation, hence it makes no sense to define a virtual function in a sealed class (a leaf, that is, no class can extend from it, and it is not an abstract class)Example:public class Parent {public virtual string MostCommonPhrase() {return "You better listen to me...";}}public class Child : Parent {public override string MostCommonPhrase() {return "You never listen to me...";}}


What are the basic difference between c sharp and vbnet?

They use different syntax.


What is the difference between tangent continuity and curvature continuity?

Tangent continuity: No sharp angles. Curvature continuity: No sharp radius changes.


What is the difference between piano and celesta?

one is more sharp in timbre one is lower.


What is the difference between A flat and B flat?

The difference between A and B in music is that A music is in a higher pitch than B and is harder to play.


What is the difference between a sharp angle and blunt angle?

Sharp mean Acute abgle (less than 90) and Lunt mean Obtuse angle between 90~180) Raza Hassan


Where is the sharp object in virtual villagers?

the dead fish near the beach


What is the difference between the phone sharp fx and the sharp fx plus?

Ths Sharp FX Plus gets an an upgrade with Android, and a much rounder body that smooths over some of its predecessor's rough edges. In addition to a virtual keyboard equipped with Swype, the Sharp FX Plus has a slide-out QWERTY for composing longer texts and messages. It supports AT&T's 3G speeds, Wi-Fi, and GPS. It has a 3.2-inch touch screen and a 3-MP camera


What is the difference between a surfboard and a ski?

Surfboard has a sharp keel on its bottom while the ski bottom is smooth.


What is the difference between java and c sharp?

You can check out the wikipedia link provided in the related links for this question


What is the difference between tiger teeth and elephant teeth?

tiger teeth are sharp and elephant teeth are soft


What is the difference between cc plus plus and c sharp?

C# is inherited from c++ with some additional features