What is difference between class and object with example?
Answer Posted / padmas
Class is the design of a any program structure with name, variables and methods included in it as a group. When any class gets executed at runtime it gets object created equivalently. Such as when a class name is tree, the object it gets created as , tree of any type. if pen is a class, then the object of pen can be, few we name it..
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation process?
What are objects in oop?
What is class and example?
Can we create object of interface?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Write a c++ program to display pass and fail for three student using static member function
What is the example of polymorphism?
What is encapsulation example?
Why do we use inheritance?
class type to basic type conversion
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is multilevel inheritance explain with example?
What is difference between data abstraction and encapsulation?
What is polymorphism what are the different types of polymorphism?
Give two or more real cenario of virtual function and vertual object