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

How can you overcome the diamond problem in inheritance?

772


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(); }

1991


What is polymorphism in oops?

562


What is the real life example of polymorphism?

609


Can private class be inherited?

621






What is encapsulation in oops?

541


Why do while loop is used?

579


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1647


Why do we use oops?

595


What is the diamond problem in inheritance?

579


Templates mean

1592


• What are the desirable attributes for memory managment?

1730


hi all..i want to know oops concepts clearly can any1 explain??

1683


Why multiple inheritance is not allowed?

586


What is overriding in oops?

606