Comment: C++ "includes" behavior and java "imports"
Answer Posted / 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 View All Answers
Explain about the relationship between object oriented programming and databases?
Why is message passing between the objects important?
How to differentiate between a CreateObject() and GetObject() ?
Which oops concept is used as reuse mechanism?
How do I make sure that an object is released in code such as a connection or file object?
How can we restrict inheritance for a class so that no class can be inherited from it?
Can you create an instance of an abstract class?
Explain about a class in oop?
Is iterator a class or interface? What is its use?
What's the order of call of constructors in inheritiance?
What is a pure virtual function?
Explain what is single and multiple inheritance?
What is the diffrence between an abstract class and interface?
What do you mean by abstract class?
Do structs support inheritance?