What is Difference between class and object of a class?

1 answer

Answer

1081290

2026-08-19 11:15

+ Follow

A class is an abstract idea. It's that "thing" you wrote the source code for.

An object is an instance of a class.

Example:

// Integer is the class; i is the instance of class Integer

Integer i;

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.