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 object and class in oops?
Which method cannot be overridden?
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 Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is interface? When and where is it used?
What is the difference between static polymorphism and dynamic polymorphism?
what is difference between class template and template class?
Why is static class not inherited?
What is encapsulation in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is purpose of inheritance?
What is polymorphism oop?
Why is abstraction needed?
What is oops and why we use oops?
What is pure oop?