:: 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                      
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)
what is class and object explain with example?
 Question Submitted By :: Dot-Net-AllOther
I also faced this Question!!     Answer Posted By  
# 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 ?    40 Yes 7 No
# 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(){



public static void main(String[] args)
One one = new One(); //one is an object of that class.
Is This Answer Correct ?    14 Yes 2 No
# 3
Is This Answer Correct ?    8 Yes 2 No
Prachi Bidwale
# 4
its true class is a variables and functions. 
Is This Answer Correct ?    3 Yes 0 No
# 5
object is a realworld entity which have some proporty and is a runtime entity in is a
partitioned area of memory containg data and function to
process the data.
class is a collection of simillar type of is a
user define datatype
class muna
muna ob1;
Is This Answer Correct ?    6 Yes 4 No
Manas Kumar Maharana
# 6
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 ?    2 Yes 0 No
Shubham Saurabh
# 7
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 ?    8 Yes 7 No
# 8
Class is base of OOPS and the user define data type;class is hert of any program. 
Is This Answer Correct ?    1 Yes 0 No
Achal Pagar

Other Dot Net AllOther Interview Questions
  Question Asked @ Answers
what are the lifetime events of a from? Six-Sigma 1
can any one urls for learning .net(which is written in simple english)   1
2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason? 247Customer 2
What exactly is being serialized when you perform serialization? scope in C# ?   1
what is an assembly ? IBM 1
What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework T3-Softwares 4
how would you manage data if u were not to use sessions or cookies ? Ness-Technologies 2
What is abstact class? in which scinario we can use abstact class? iGate 4
which tag i need to use manually to bind columns in a datagrid ?   2
1. How to restrict a class from allowing to create only one object. I.e., one should be allowed to create only one object of the class type. 247Customer 1
How to call the dll at runtime in .Net? iGate 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  All Rights Reserved.   ::