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

What is the difference between encapsulation and polymorphism?

590


Why polymorphism is used in oops?

578


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1891


How do you define a class in oop?

625


What is an advantage of polymorphism?

589






What is balance factor?

580


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1622


explain sub-type and sub class? atleast u have differ it into 4 points?

1830


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2004


Can we override main method?

602


Where is pseudocode used?

563


program for insertion ,deletion,sorting in double link list

2276


What is oops and its features?

580


How many human genes are polymorphic?

568


Why oops is important?

603