Sitemap
y sirisha

y sirisha

Class & Objects

Oct 22, 2022

OBJECT: An instance of class that has real time entity.

CLASS: it is a template. Referred as collection of objects.

Set of data and its method.

Data member and member function.

Blueprint of an object.

Its a user defined data type.

OOPS:

ENCAPSULATION: Wrapping the data into single entity.

POLYMORPHISM: Performing the same task in different ways.

Get y sirisha’s stories in your inbox

Join Medium for free to get updates from this writer.

INHERITANCE: Creating new class from existing class.

ABSTRACTION: Hiding the internal details of the process to end user.

BILL ACCOUNT:

Press enter or click to view image in full size

LEAP YEAR:

Press enter or click to view image in full size
Press enter or click to view image in full size

OVERLOADING EXAMPLE:

Press enter or click to view image in full size

PRIME NUMNBER EXAMPLE:

Press enter or click to view image in full size

--

--