What is the difference between class and structure?
Answer Posted / guest
structure is a value type class is reference type,
struct Memory will be on stack and class Memory stored on
Heap,
struct not suports inheritance and class can?
Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is encapsulation in oop?
What is static in oop?
What is class and object with example?
What is the purpose of polymorphism?
What are functions in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Write a c++ program to display pass and fail for three student using static member function
What is abstract class in oops?
What is polymorphism what is it for and how is it used?
What type of loop is a for loop?
How to use CMutex, CSemaphore in VC++ MFC
Why do we use polymorphism in oops?
What is advantage of inheritance?