What is the difference between declaration and definition?
Answer Posted / ganesh9948302505
Declaration of a function is COMPILATION PHASE,inorder to
support the SIGNATURE OF FUNCTION like function
name,arguments. Simply it identifies FUNCTION.
Where as in defination, function cotains SET OF
STATEMENTS and expands SOURCE CODE in the form of
instructions
(all this is concept of functions)
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What language is oop?
What is class encapsulation?
Why do we use inheritance?
What is difference between inheritance and polymorphism?
How to improve object oriented design skills?
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(); }
2. Give the different notations for the class.\
Why do while loop is used?
What is the oops and benefits of oops programming?
What are the 3 pillars of oop?
Which method cannot be overridden?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Can destructor be overloaded?
What is the main purpose of inheritance law?
What are the benefits of oop?