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 multiple inheritance? How java 8 supports multiple inheritance?
Are constructors inherited? Can a subclass call the parent's class constructor? When?
What's the benefit of using inheritance?
Why do we separate interface from implementation?
What is the significance of encapsulation?
What is meant by overloading functions and operators?
How do I make sure that an object is released in code such as a connection or file object?
What do you mean by virtual function and virtual classes?
Which keyword can be used for overloading?
What is Polymorphism, overloading, overriding and virtual?
What is data encapsulation and what's its significance?
Which OOPS concept exposes only the necessary information to the calling functions?
State two differences between an object and a class.
What is the default access specifier in a class definition?
Explain about inheritance in oops?