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
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is encapsulation with example?
How to use CMutex, CSemaphore in VC++ MFC
What are benefits of oop?
what are the ways in which a constructors can be called?
What polymorphism means?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
what is different between oops and c++
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(); }
Can enum be null?
What is oops concept with example?
What do you mean by overloading?
What is the point of polymorphism?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?