Challenge

Project

OOPS concepts used in the below code is

Object:

objects are always called instances of a class which are created from a class in java .they have states and behavior.

objects are called in every class,methods created in the calculator code

Class:

classes are like object constructors for creating objects.A class has both static and instance initializers.to create the classes we use the keyword Class in the below program

Abstraction:

Abstraction is a process which displays only the necessary information.In the code we only shows the results instead of calculating part.

Inheritance:

Inheritance is a method of an object acquiring another object properties.In the below code inheritance was happened.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.