Problem Statement: Creating a Car Class in Java to Understand Object-Oriented Programming (OOP)
New Problem Statement
Question:
Create a class named Car with two attributes: brand and year.
Write a constructor that initializes these attributes using the this keyword.
Create a method called showDetails() to print the car's brand and year of m...
msabatali.hashnode.dev4 min read