difference between class and object
Answer Posted / rajdeep gupta
class in a keyword to create user define data type.it is
only on logical perception .it is collection of similar
types of variable.
object is a variable of class type .there is no meaning of
class without creating object.object is made at run time on
the heap portion of ram
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Who invented oop?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Is abstract thinking intelligence?
#include
Which language is pure oop?
What is overloading in oops?
Templates mean
Plese get me a perfect C++ program for railway/airway reservation with all details.
Why it is called runtime polymorphism?
Can bst contain duplicates?
Can abstract class have normal methods?
2. Give the different notations for the class.\
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 class and example?
State what is encapsulation and friend function?