How to convert this procedural programming to object-oriented programming?
- by manus91
I have a source code that is needed to be converted by creating classes, objects and methods.
So far, I've just done by converting the initial main into a separate class. But I don't know what to do with constructor and which variables are supposed to be private. This is the code :
import java.util.*;
public class Card{
private static void…