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
What is abstraction example?
What is oops and why we use oops?
What is difference between oop and pop?
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.
What is object in oops?
What are the benefits of oop?
write string class as your own class in java without using any built-in function
what are the ways in which a constructors can be called?
What is cohesion in oop?
What is the full form of oops?
Get me an image implementation program.
What is the point of polymorphism?
What do you mean by overloading?
What is methods in oop?
What are the 5 oop principles?