why instance? what are the uses of instance?
Answers were Sorted based on User's Feedback
Answer / navin c. pandit
The object of a class is called as Instance & the process is
called as Instantiation.
To access or to call a member of a class we need instance.
eg.
public class myClass
{
public myClass()
{
}
public string show()
{
return "Hello India!";
}
}
To access method show(), we need instance of the class
myClass. And the code will be as:-
myClass obj_mc = new myClass()
string str=obj_mc.show();
Now str contains string value 'Hello India!'
Hope u have got the point.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / yathirajulu
instace is the way to access members(methods) in that
class,by this instance to invoke the methods.
| Is This Answer Correct ? | 0 Yes | 2 No |
What are the basics of c#?
what is ment by Unboxing?
What is the use of flag in c#?
What are the two uses of a ‘using’ statement in c#?
What is difference between for and foreach loop in c#?
What is the difference between int.parse and int.tryparse methods?
When you inherit a protected class-level variable, who is it available to?
What is the extension of c# file?
What is a singleton unity?
Explain the role of Garbage collector and its generations?
What is c# most used for?
Describe the process of “exception handling implementation” in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)