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


Please Help Members By Posting Answers For Below Questions

Which OOPS concept exposes only the necessary information to the calling functions?

996


Can a class in java be inherited from more than one class?

703


What is data encapsulation and what's its significance?

811


What is a nested interface?

782


What is a subclass?

764


Explain about inheritance?

816


Explain what is meant by polymorphism?

847


Why dynamic binding is used in object-oriented programming?

875


Which OOPS concept is used as a reuse mechanism?

831


What are the main features of oops?

819


How can I be thrown polymorphically?

771


Can you explain primordial class loader?

691


What is the main difference between a class and an object?

783


Which oops concept is used as reuse mechanism?

3264


What are the different types of inheritance?

724