What is the difference between class and object?

Answer Posted / kanchi

class is the advance version of structure because it contains the data and functions both so it is wrapped into a single unit called encapsulation.
Object is the instance of class and it always created at run time

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is object oriented programming so hard?

828


What is constructor overloading in oop?

862


Can we override main method?

839


Why interface is used?

748


Plese get me a perfect C++ program for railway/airway reservation with all details.

3658


What is the fundamental idea of oop?

858


What is the point of oop?

860


What is polymorphism oop?

820


What is purpose of inheritance?

847


What is variable example?

786


How do you define social class?

810


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6708


What is oops in simple words?

806


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

2130


Get me a number puzzle game-program

1929