What is the difference between declaration and definition?
Answer Posted / s
Declaration means we are just creating a variable or method.
Defination means we are assigning some value for a variable
& doing some functions in method
Is This Answer Correct ? | 116 Yes | 48 No |
Post New Answer View All Answers
What are the advantages of polymorphism?
What is difference between inheritance and polymorphism?
What is polymorphism what is it for and how is it used?
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
What is overriding vs overloading?
What is encapsulation c#?
to find out the minimum of two integer number of two different classes using friend function
What is object in oop?
What are the types of abstraction?
What do you mean by abstraction?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is overriding in oop?
How to improve object oriented design skills?
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.