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                      
Google
   
 
Categories >> Software >> Microsoft Related >> Dot Net >> Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions (204)
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions (75)
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions (83)
 Dot Net General interview questions  Dot Net General Interview Questions (321)
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions (178)
Question
what is class and object explain with example?
 Question Submitted By :: Dot-Net-AllOther
I also faced this Question!!     Answer Posted By  
 
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 ?    42 Yes 7 No
Karthik
 
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 ?    15 Yes 2 No
Dsr
 
 
 
Answer
# 3
CLASS IS A COLLECTION OF VARIABLES AND FUNCTIONS. 
Is This Answer Correct ?    8 Yes 2 No
Prachi Bidwale
 
Answer
# 4
its true class is a variables and functions. 
Is This Answer Correct ?    3 Yes 0 No
Mayur
 
Answer
# 5
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 ?    3 Yes 0 No
Shubham Saurabh
 
Answer
# 6
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 ?    9 Yes 7 No
Kvr
 
Answer
# 7
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 ?    6 Yes 4 No
Manas Kumar Maharana
 
Answer
# 8
Class is base of OOPS and the user define data type;class is hert of any program. 
Is This Answer Correct ?    2 Yes 0 No
Achal Pagar
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
What is a memory management? Six-Sigma 3
How many types of languages does .net support? name at least 10-15? Six-Sigma 11
If I'm developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users? Hologic 3
3. Should validation (did the user enter a real date) occur server-side or client-side? Why?   4
what are clr,cls,cts?what is .net framework? Six-Sigma 6
Hi i need fast track course maximum to complete within a month....courses are Asp.net,c3,vb.net n sql server........at hyderbad location ..best institute n cost Chevron 1
what is page_directive PCS 1
Explain in-proc,out-proc and sql server. Ness-Technologies 4
while developing a asp.net 2.0 ajax application how to maitain and check the ACID property for each transaction Aviva 2
Which Binding best suits where a WCF Service and the client application resides in the same machine? Cap-Gemini 2
How can i create only one instance of class and thus doesn't allow creating any more instances?   1
What is VSS? Use of VSS? How can we use VSS in our Application?   4
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com