What is the difference between class and object?

Answer Posted / johncz

Class is a template for the custom type that can be used as
variable. It defines types of data that class contains and
the set of functions to manipulate those data types. It is
just a recipe to be used when class is instantiated.

Object is an entity created using class template. Such an
object occupies computer’s memory. Each object of the class
is independent entity.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction example?

834


What is oops and why we use oops?

784


What is difference between oop and pop?

872


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2827


What is object in oops?

823


What are the benefits of oop?

868


write string class as your own class in java without using any built-in function

2210


what are the ways in which a constructors can be called?

1802


What is cohesion in oop?

839


What is the full form of oops?

913


Get me an image implementation program.

1740


What is the point of polymorphism?

772


What do you mean by overloading?

794


What is methods in oop?

745


What are the 5 oop principles?

842