Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Have Programming Question? Ask it here!

2 Answer(s)      a year and 8 months ago
Posted in : JavaScript Questions

differnce between class and object

View Answers

January 4, 2013 at 7:33 PM

please say exact difference between class and object

January 5, 2013 at 12:06 PM

hi, Here I am explaining the differences between Class and Object hope this will helpful for you.

  1. In Java Class is a template or blueprint which consists of the data members, methods and its definition whereas, object is an instance of class.

  2. Class is used to create objects whereas, object represents the real world entity.

  3. Class defines the real world entity states and behavior whereas, the software bundle of these concerned states and behavior is object.

Related Tutorials/Questions & Answers:
Java classes
Java classes  Which class is extended by all other classes
DAO Classes
DAO Classes  login page code for Dao classes
java classes
java classes  Which class is the super class for all classes in java.lang package
wrapper classes
wrapper classes  Explain wrapper classes and their use?   Java Wrapper Class Wrapper class is a wrapper around a primitive data type... of the primitive wrapper classes in Java are immutable i.e. once assigned a value
Inner classes
Inner classes   Hi I am bharat . I am student learning java course . I have one question about inner classes . question is how to access the instance method of Non-static classes which is defined in the outer
classes and objects
classes and objects  Define a class named Doctor whose objects... methods, and an equals method as well. Further, define two classes: Patient... classes a reasonable complement of constructors and accessor methods, and an equals
classes in c++
classes in c++  1- design and implement a class datatype that implement the day of the week in the program.the class datatype should store the day, such as sun for sunday. the programe should be able to perform the following
Classes and Objects
Classes and Objects       Objects and classes are the fundamental parts of object-orientated programming technique. A class... illustrates how to define our own classes, that includes declaring and defining
Helper classes in java
Helper classes in java  helper classes
Nested classes: Examples and tutorials
Nested classes: Examples and tutorials       Nested classes Here is another advantage of the Java... within another class, such class is called a nested class. Inner classes can
Hibernate Classes
In this section, you will learn about persistent classes in Hibernate
core classes of the Struts Framework
core classes of the Struts Framework  What are the core classes of the Struts Framework
core classes of Struts
core classes of Struts  What are the core classes of Struts
Classes in Java
Classes in Java       Exceptions: There are some kind of errors that might occur during the execution of the program. An exception is an event that occurs and  interrupts
Factory classes in flex
Factory classes in flex  Hi.. What are the factory classes in flex? please give the name of all factory classes....... Thanks
Anonymous Inner Classes - Anonymous Inner Classes tutorial
.style1 { text-align: center; } Anonymous Inner Classes Except the inner class, there are two types of supplementary  inner classes... inner classes. The class declared inside the body of a method without naming
php classes example
php classes example  How to write a class in PHP
php classes and objects
php classes and objects  using a object with a member method of the class
Presistace classes in hibernate
Presistace classes in hibernate  Explain the persistence class in hibernate
Java list of uninstantiated classes
Java list of uninstantiated classes  Java list of uninstantiated classes
Action classes in struts
Action classes in struts  how many type action classes are there in struts   Hi Friend, There are 8 types of Action classes: 1.ForwardAction class 2.DispatchAction class 3.IncludeAction class 4.LookUpDispatchAction
GWT supported java classes
GWT supported java classes  What are the methods and classes in Java which are supported and unsupported by GWT
Collection classes in java
Collection classes in java   Normally a database is used... is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project
Collection classes in java
Collection classes in java   Normally a database is used... is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project
Nested and Inner classes
Nested and Inner classes  What is the significance of Inner Classes and Static Inner Classes? or Why are nested classes used?   Hi Friend... nested classes because of the following reasons: It is a way of logically
java classes. - Java Beginners
java classes.  I con not understand the behavior of anonymous inner classes?   Hi friend, I am sending you a link. This link will help you. Please for more information.
about predefine classes.....
about predefine classes.....  how we know that the class used in your given examples are predefind and from where we get info. about other predefine classes. we need explanation about examples given by you for java beginners
Classes in java
etc. For more details click on the following link Classes in Java
Java application that uses the classes and
Java application that uses the classes and   i have this class diagram with three classes: Curriculum, Course, and Lecture. Your class diagram...) I wish Write a Java application that uses the classes and methods above
Small business administration classes
administration classes is important in learning the important techniques? Thanks... administration classes from any reputed training company will help you in your business. The Small business administration classes will help you in following
Advanced Concepts with Classes - JDBC
Advanced Concepts with Classes  Advanced Concepts with Classes... you Employees in a company are divided into the classes Employee, HourlyPaid... the classes and write a test program to verify that the classes function correctly
Member Classes, Inner Nested Classes in java
Member Classes        Member classes are defined within the body of a class. We can use member classes anywhere within the body of the containing class. We declare member classes
Nested classes
Nested classes      ... language that allows us to define a class within another class, such classes are known as nested classes. Inner classes can be either named
What is Abstract classes in Java?
What is Abstract classes in Java?  What is Abstrack class in Java programming language? Please suggest any reference for finding examples. thanks,   Hi, In Java programming language we are used the Java Abstract
What are the core classes of struts? - Struts
What are the core classes of struts?   What are the core classes of struts
JAVA CLASSES/ SUPERCLASS  i. Define a class called Student and its two subclasses named underGraduateStudent and postGraduateStudent. Make a subclass of Employee. A person has a name, address, phone number, and email address
Java FontMetrics classes
Java FontMetrics classes  What is the difference between the Font and FontMetrics classes?  The Font class provides mappings to fonts that are used to render text data onto the screen. The Font class maps
Inheritance, abstract classes
a little lost with child classes, but here goes and don't know what to call... field. I created two child classes of Account: Checking and Savings. Within
how many types of system classes are there?
how many types of system classes are there?  How many types of system classes
how to create classes for lift program
how to create classes for lift program  i would like to know creating classes for lift program
Wrapper Classes
Wrapper Classes        In this section you will learn about Wrapper classes and all the methods... as a Boolean class instance. All of the primitive wrapper classes in Java
Inner Classes In Java
Inner Classes In Java       There are 4 kind of classes that can be defined in a Java program, roughly can be termed as the inner classes. --  Inner classes provides an elegant
What is the base class of all classes?
What is the base class of all classes?  Hi, What is the base class of all classes? thanks   Hi, The base class is nothing... classes i.e. java.lang.Object. thanks
Exception Classes
Exception Classes       The hierarchy of exception classes commence from Throwable class which is the base class for an entire family of exception classes, declared in 
Generic Classes
Generic Classes In this section, you will learn to create Generic classes... to other non-Generic classes. There is only difference the name of the class... they are known as parameterized types or parameterized classes. Given below example
Disassembling Java Classes - Java Tutorials
Disassembling Java Classes To Disassemble a class file in Java there is a tool called javap. This Disassembling tool prints outs the details of the class.... with -package It will show package/ public/protected classes and members. To see
Interfaces and Abstract Classes - Development process
Interface and Abstract Classes?  Hi Friend, Interface: Java does... by using the interface. Interfaces are useful when you do not want classes to inherit from unrelated classes just to get the required functionality
Java Classes
Java Classes conducted online by Roseindia include an elite panel of some... of expertise in the field for free. These classes are made in such a way... that if a beginner starts taking a Java classes online here, than he/she