Class vs. Instance, is a HackerRank problem from 30 DAYS OF CODE subdomain. In this post we will see how we can solve this challenge in Java

Problem Description

Day 4: Class vs. Objective In this challenge, we're going to learn about the difference between a class and an instance; because this is an Object Oriented concept, it's only enabled in certain languages. Check out the Tutorial tab for learning materials and an instructional video!

Task Write a P ....

You can find the full details of the problem Class vs. Instance at HackerRank

Solution: Please check the snippet for the solution.

Solution originally posted at: Github by @Java-aid