How OOPS concept is achieved in Java?
Answer Posted / james
1) Encapsulation:- is achieved through
classes.(Binding/Storing data and methods as a single unit )
2) Abstraction:-it is achieved through private, protected,
public, default keywords.
3)Inheritance through interfaces.
4)polymorphism is achieved through method overloading and
constructor overloading.
5)Message Passing -through objects calling
Is This Answer Correct ? | 30 Yes | 6 No |
Post New Answer View All Answers
What are parsing rules?
What is slash r?
What is a method in programming?
Convert a BST into a DLL and DLL to BST in place.
What is yield () in java?
If you do not want your class to be inherited by any other class. What would you do?
What is a parameter in java?
What is assembly used for?
What does string [] args mean?
Is set sorted in java?
Can private class be inherited in java?
What are the two main uses of volatile in Java?
What makes a function well defined?
What do you mean by thread safe?
Can a static class implement an interface?