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 is data abstraction? what are the three levels of data abstraction with Example?

0 Answers   TCS,


Differentiate between Aggregation and containment?

3 Answers  


What is the difference abstract class and interface?

0 Answers  


What are the different principle of OOPS?

0 Answers   QuestPond,


How can we call the base method without creating an instance?

0 Answers  


What is the diffrence between an abstract class and interface?

0 Answers  


Why is class hierarchies managed in object-oriented programming?

0 Answers  


How many instances can be created for an abstract class?

0 Answers  


Difference between abstraction and implementation hiding ?

0 Answers  


What are different ways to create string object?

0 Answers  


What is difference between encapsulation and abstraction?

0 Answers  


Difference: Sequence Diagrams, Collaboration Diagrams ?

2 Answers   Protech,


Categories