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

What are constructors in oop?

813


What are the benefits of polymorphism?

881


What is coupling in oop?

795


What is object in oop with example?

979


What is byval and byref? What are differences between them?

1966


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1642


What is the diamond problem in inheritance?

842


What is abstraction encapsulation?

886


What is abstract class in oops?

800


what is graphics

2227


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1866


What are the important components of cohesion?

771


What is a class oop?

777


What are the components of marker interface?

815


What is meant by oops concept?

809