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
Give two or more real cenario of virtual function and vertual object
What is abstraction in oop with example?
What is abstraction example?
What do you mean by abstraction?
What are the features of oop?
write string class as your own class in java without using any built-in function
What is the renewal class?
Why is polymorphism used?
What is the highest level of cohesion?
What is polymorphism what are the different types of polymorphism?
class type to basic type conversion
Are polymorphisms mutations?
How can you overcome the diamond problem in inheritance?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How is class defined?