Introduction: - Java is a true object Oriented language and therefore the underlying structure of all java programs is classes. Anything we wish to represent in a java program must be encapsulated in a class that defines the state and behavior of the basic program components know as objects. Classes create objects and objects use methods to communicate between them. That is all about object-oriented programming.
Class:- Class is a blueprint of the object. Class is a way to binding data and associated methods in a single unit.
Method:- In object-oriented programming's generally, we write two types of methods. They are member method and non-member methods.






0 comments:
Post a Comment