What is the difference between declaration and definition?
Answer Posted / palsaniya sadikhasan, meta.
Declaration of variable and function means to create memory
for a variable or function.
e.g. int a;
will create a memory 2 byte in main memory.
definition means to assign a value to the particular
variable that are used in function.
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is a class in oop? Can you explain polymorphism? Hi friends
I have experience of 6 months in website design and
maintanence. Now i am looking for other IT jobs.. to switch
platform. please post any interview you know in chennai. Why is oop useful? What is polymorphism in oop example? #include Can enum be null? What are constructors in oop? What is destructor give example? Can we create object of interface? What is encapsulation and abstraction? How are they implemented in C++? What is pointer in oop? 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();
} 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.