OOPS in Java || Java and DSA course || Blog 15

OOPS stands for object oriented programming system. OOPS is common in every programming language whether it is c++ or java . Modern languages are based on oops. for a quick overview , we will be learning ; constructors Polymorphism Inheritance Access Modifiers Encapsulation Abstraction what is an object and classes ? Everything in Java is associated with classes and objects, along with its attributes and methods. A Class is like an object constructor, or a "blueprint" for creating objects. lets take a student. Here, a student is an object while attributes like name, age, section is object attributes/classes. the functions inside the classes are called members. in the line Student student1 = new Student(); new stands for the memory allocation Student() is a special type of function called Constructors. Constructors constructors construct objects. They cannot return .Their name should be same in the class . It calls only one time. there are 3 types of constructors: N...