ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
   
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
what is class and object explain with example?
 Question Submitted By :: Raghu_113
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is class and object explain with example?
Answer
# 1
Classes and objects are separate but related concepts.
Every object belongs to a class and every class contains
one or more related objects. A Class is static. The
attributes of a class don't change. An Object on the other
hand has a limited lifespan. Objects are created and
eventually destroyed. Also during that lifetime, the
attributes of the object may undergo significant change. A
class is a general concept while objects are the specific
and real instances that embody that concept
 
Is This Answer Correct ?    32 Yes 6 No
Karthik
 
  Re: what is class and object explain with example?
Answer
# 2
class is templet of an object. object is a instatiate the
class.Object is super class of all objects.

Class One{ //class

public void getMethod(){

Console.WriteLine("one....");

}

public static void main(String[] args)
{
One one = new One(); //one is an object of that class.
console.writeLine();
}
 
Is This Answer Correct ?    13 Yes 2 No
Dsr
 
 
 
  Re: what is class and object explain with example?
Answer
# 3
class had not any methods and variables class pointed to
where we get methods and variable
object have methods and variables
 
Is This Answer Correct ?    4 Yes 7 No
Kvr
 
  Re: what is class and object explain with example?
Answer
# 4
object is a realworld entity which have some proporty and
behabiour.it is a runtime entity in oops.it is a
partitioned area of memory containg data and function to
process the data.
class is a collection of simillar type of objects.it is a
user define datatype
example:
class muna
{
memberfunction()
{
datatype:
}
};
main()
{
muna ob1;
ob1.memberfunction();
}
 
Is This Answer Correct ?    5 Yes 3 No
Manas Kumar Maharana
 
  Re: what is class and object explain with example?
Answer
# 5
CLASS IS A COLLECTION OF VARIABLES AND FUNCTIONS. 
Is This Answer Correct ?    6 Yes 2 No
Prachi Bidwale
 
  Re: what is class and object explain with example?
Answer
# 6
its true class is a variables and functions. 
Is This Answer Correct ?    1 Yes 0 No
Mayur
 
  Re: what is class and object explain with example?
Answer
# 7
Object has states and behaviours. An object is instance of object.Exp:states-colour,name,breed and behaviour-wagging,barking,eating.
A Class is a template/blue print that describes the behaviour of object.

public class Dog
{
string breed;
int age;
string colour;
void barking()
{
}
void hungry(){
}
void sleeping(){
}
}
 
Is This Answer Correct ?    0 Yes 0 No
Shubham Saurabh
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
What is Ienumerable  1
how to make and display a form without title bar? Six-Sigma1
how do you hide maximize,minimize and close box at the form title bar? Six-Sigma1
IN C# if we click a field in the dropdownlist then i have to get the respected field details in the next textbox..........  2
There are so many languages are already existing for developing application.Then what is the need of .net.  1
How to call the dll at runtime in .Net? iGate4
What i sthe meaning of .(dot) in .Net? HCL5
Explain the differences between Server-side and Client-side code?  2
what is a required field validation control? Six-Sigma2
Navigation controls in ASP.net,explain each control in brief? Six-Sigma2
can aspx page have multi language declarations ?  1
can aspx page contains two pager tags ?  1
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com