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
Classes and structs support inheritance. Is this statement true or false?
What is diamond inheritance problem? How java 8 solves this problem?
What is the use of finalize method?
What are inner classes and what is the practical implementation of inner classes?
Does a class inherit the constructor of its super class?
What is the difference between an interface and abstract class?
Can we have a default method definition in the interface without specifying the keyword "default"?
Explain OOPS.
Explain what an object is.
What are the problems faced by the developer using object oriented programming language?
What is bootstrap, extension and system class loader? Or can you explain primordial class loader?
Explain persistence?
Explain about realistic modeling?
Define modularity?
Explain what is single and multiple inheritance?