What is class and object in OOPs?
Class
Let's take "Student" class for example,
Name of Class : Student
Attributes or Properties of Student class could be : name, rollNumber, course etc.
Operations of Student class could be : getDetails, setDetails etc.
Let's represent this Student class in Java.
class Student{ private...
OOPs Concept - 1
Java is an object oriented programming language which means it supports OOPs concepts. In this post I am going to discuss OOPs concepts which will help you not only in Java but in other OOPs and OOPs based languages.
Basic OOPs concepts are as follow :
1. Class
2. Object
3. Inheritance
4. Polymorphism
5. Abstraction
6. Encapsulation
Now we will...