KnowledgeBoat Logo
|

Computer Applications

How are classes and abstraction linked ?

OOP Intro Java

2 Likes

Answer

A class is a named software representation for an abstraction. A class actually represents an abstraction, where characteristics are implemented through data and behaviour is implemented through methods.

For example, the abstract concept of a car can be represented in the program by a class with properties like make, model, and year, and methods like start() and stop().

Answered By

1 Like


Related Questions