I want to how to to use the constructor CreditCard, how to use the method "getNumber".

Recommended Answers

All 2 Replies

I want to how to to use the constructor CreditCard, how to use the method "getNumber".

How the hell would we know?

There is no class named CreditCard in Java, you need to code one according to your requirements.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.