difference between class and object

Answer Posted / pradeep kumar shukla

class is a reserved keyword to create user define data type
class is a machanism to create abstract, customize data type

object is a collection of variable ,an object made at run time
it is instance of class

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have inheritance without polymorphism?

617


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


i got a backdoor offer in process global,Bangalore..Can i work with it?

2328


What is polymorphism programming?

605


What is polymorphism and its types?

598






What is variable example?

596


can we make game by using c

3430


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1669


What is the difference between encapsulation and polymorphism?

597


What are the benefits of oop?

607


Why is oop useful?

602


What is the point of oop?

656


What are main features of oop?

634


What are the three main types of variables?

600


Why is encapsulation used?

577