difference between class and object

Answer Posted / nishant kumar

class is the collection of data member and member function associated with it.
object is a instance of class.
class is a user define key-word.

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 class and object with example?

583


How to improve object oriented design skills?

568


What is class and object in oops?

607


What is coupling in oops?

592


What is the real life example of polymorphism?

605






What is difference between class and object with example?

562


What is the full form of oops?

607


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

2004


what is the 3 types of system development life cycle

2431


What are constructors in oop?

587


Can an interface inherit a class?

556


What is polymorphism used for?

566


What is oops in simple words?

576


What is the difference between abstraction and polymorphism?

610


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1617