Which concept of Java is achieved by combining methods and attribute into a class?
(a) Encapsulation
(b) Inheritance
(c) Polymorphism
(d) Abstraction
This question was posed to me by my school principal while I was bunking the class.
Asked question is from Concepts of OOPs topic in section Java Environment & OOPS Concepts of Java