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

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

553


Why is OOP good?

570


What are extrinsic and intrinsic connections in object-oriented programming?

543


Can we reduce the visibility of the inherited or overridden method ?

606


What is the diffrence between an abstract class and interface?

605






What is @functionalinterface?

576


What are base class, sub class and super class?

553


What does the “abstract” keyword mean in front of a method? A class?

515


What is the syntax of object oriented method call?

550


Can I implement polymorphism using abstract class?

565


Why does java not support multiple inheritance?

518


What is serialization? How do we implement serialization actually?

494


Explain persistence?

568


Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?

554


Differentiate between overloading and overriding.

585