As we know, java is a object oriented language and composed of classes. So it is similar to C++ as object oriented but java is loaded with advanced features which can make it more powerful.

“With great power comes great responsibility”.

So we will start out discussion with, what are classes in java? Class is a set of properties or methods that are common to objects of that particular class. In java the class is declared by class keyword as same in C++. While declaring the class first we have to use class keyword, then class name we want to…

ADARSH LONDHE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store