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
What is the main difference between a class and an object?
Why is OOP good?
What are extrinsic and intrinsic connections in object-oriented programming?
Can we reduce the visibility of the inherited or overridden method ?
What is the diffrence between an abstract class and interface?
What is @functionalinterface?
What are base class, sub class and super class?
What does the “abstract” keyword mean in front of a method? A class?
What is the syntax of object oriented method call?
Can I implement polymorphism using abstract class?
Why does java not support multiple inheritance?
What is serialization? How do we implement serialization actually?
Explain persistence?
Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?
Differentiate between overloading and overriding.