Comment: C++ "includes" behavior and java "imports"



Comment: C++ "includes" behavior and java "imports"..

Answer / chaitanya

fine...........
in C++ we wrote #include<@@@@@@@@@>
because it accessing the functions,keywords....etc from
that header file.
But in Java we imports the classes i mean....
inherits the behaviour of that imported class
ex: import java.*;
the properties(all functions,...etc data) of the java class
will comes to what classes we wrote in the program.


FROM:
MICHAEL JACKSON(King Of Pop)

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More OOAD Interview Questions

what are the main underlying concepts of object orientation?

2 Answers  


Why do we use oops concepts? What is its advantage?

0 Answers  


Why abstraction is important?

0 Answers  


Can an interface have an inner class?

0 Answers  


Can we override static methods? Why?

0 Answers  






What is method overriding?

0 Answers  


Explian following terms: Constraint Rules, Design by contract.

1 Answers   Protech,


Explain what you understand by function overloading.

0 Answers   TCS,


Is it possible to override private virtual methods?

0 Answers   Infosys,


How many methods are there in the externalizable interface?

0 Answers  


What are the interfaces you used in beans?

0 Answers  


Does a class inherit the constructor of its super class?

0 Answers  


Categories