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


Please Help Members By Posting Answers For Below Questions

Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1752


What does I oop mean?

710


What is encapsulation process?

670


What is oops in simple words?

693


What are properties in oop?

695






What are the 5 oop principles?

692


What is coupling in oop?

690


write a program that takes input in digits and display the result in words from 1 to 1000

2085


What do you mean by overloading?

679


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3659


Why is object oriented programming so hard?

707


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

1808


Why do we use encapsulation in oops?

617


What is the difference between static polymorphism and dynamic polymorphism?

721


What is the difference between a mixin and inheritance?

614