Professional Documents
Culture Documents
Lecture-1 - Object Oriented Programming Introduction
Lecture-1 - Object Oriented Programming Introduction
Programming
21
Object Oriented Programming
Classes and Objects
Difference between Class and Object
Contd..
• A class is a group of objects which have common
properties.
• A class in Java can contain:
– Fields
– Methods
– Constructors
– Blocks
– Nested class and interface
Classes and Objects
• A simplified general form of a class definition is shown
here:
Data Type Name of
Variable
Code
Parameters
Passed
Classes and Objects