Class & Objects
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:
LEAP YEAR:
OVERLOADING EXAMPLE:
PRIME NUMNBER EXAMPLE:







