difference between class and object

Answer Posted / rajdeep gupta

class in a keyword to create user define data type.it is
only on logical perception .it is collection of similar
types of variable.

object is a variable of class type .there is no meaning of
class without creating object.object is made at run time on
the heap portion of ram

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 polymorphism give a real life example?

561


What do you mean by abstraction?

618


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1795


Why do pointers exist?

663


What is the significance of classes in oop?

590






What is oops with example?

566


What are classes oop?

598


What are the components of marker interface?

602


Write a program to sort the number with different sorts in one program ??

1921


Why oops is important?

615


How do you explain polymorphism?

593


What is encapsulation with example?

581


what is graphics

2011


What language is oop?

596


What is polymorphism oop?

623