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

Differentiate between data abstraction and encapsulation.

525


What is ‘this’ pointer?

574


What are the problems faced by the developer using object oriented programming language?

553


Explain about the relationship between object oriented programming and databases?

525


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

574






What is bootstrap, extension and system class loader?

495


Explain about a class in oop?

594


Difference between class and an object?

586


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

563


Explain about message passing in object oriented programming?

590


Can we override static methods of a class?

541


Why is OOP good?

578


Explain about multiple inheritance?

628


What do you mean by polymorphism?

553


Explain the rationale behind object oriented concepts?

601