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
Which OOPS concept exposes only the necessary information to the calling functions?
Can a class in java be inherited from more than one class?
What is data encapsulation and what's its significance?
What is a nested interface?
What is a subclass?
Explain about inheritance?
Explain what is meant by polymorphism?
Why dynamic binding is used in object-oriented programming?
Which OOPS concept is used as a reuse mechanism?
What are the main features of oops?
How can I be thrown polymorphically?
Can you explain primordial class loader?
What is the main difference between a class and an object?
Which oops concept is used as reuse mechanism?
What are the different types of inheritance?