what is the diffrence between class and object?

Answer Posted / sri

class is a collection of data members nd member funs()
object is an instance of a class

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Java and C++?

619


What is t in generics in java?

565


Can we overload run() method in java?

599


Why do we need autoboxing in java?

523


Can you explain the final method modifier?

571






Why is String immutable?

626


How to create com object in Java?

653


Is Java a dying language?

577


What is anonymous inner class?

613


Why does java not support pointers?

556


What are the advantages of defining packages in java?

509


Which class cannot be a subclass in java?

547


What is the synonym of string?

548


How strings are created in java?

572


What’s the difference between applets and standalone program?

534