212-15-4187 Discussion forum

212-15-4187 Discussion forum

by Burhan Uddin -
Number of replies: 0

1)A Class in object oriented programming is a blueprint or prototype that defines the variables and the methods (functions) common to all Java Objects of a certain kind. An object in OOPS is a specimen of a class. Software objects are often used to model real-world objects you find in everyday life.

An object can be defined as an instance of a class, and there can be multiple instances of a class in a program. An Object is one of the Java OOPs concepts which contains both the data and the function, which operates on the data.

2)

Class: Bike

object: Honda, Suzuki, Bajaj, KTM,  Dukacti, etc.