answersLogoWhite

0

What is mean by Classes and Objects?

Updated: 8/17/2019
User Avatar

Wiki User

13y ago

Best Answer

an Object is an instance of the Class for ex: Integer i = new Integer (1); i is an object of the Class Integer. of courses classes contain variables and methods and constructors. although the Object Class is a different case, it's the main class that all the classes in java are subClasses of it

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is mean by Classes and Objects?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When using objects?

objects are used to represent classes......


In c plus plus what are the three ways that classes can relate to each other?

Class wrappers (embedded objects), inheritance (derived objects) and friend classes.


Why constructor use in java?

To create objects of classes


How did you implemented classes in your project?

with out classes we cant run any kind of project..... so every project as it own classes and methods and objects....


Can you use objects in class level declaration?

Objects are classes... It's the most abstract type of data.


What is simple inheritance?

In object-oriented programming (OOP), inheritance is a way to reuse code of existing objects, or to establish a subtype from an existing object, or both, depending upon programming language support.In classical inheritance where objects are defined by classes, classes can inherit attributes and behavior from pre-existing classes called base classes, superclasses, parent classes or ancestor classes. The resulting classes are known as derived classes, subclasses or child classes.The relationships of classes through inheritance gives rise to a hierarchy. In prototype-based programming, objects can be defined directly from other objects without the need to define any classes, in which case this feature is called differential inheritance.The inheritance concept was invented in 1968 for Simula.


Can you explain in which scenario the primitive types are used as objects?

It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an objectIt is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an object


What is c plus plus called object oriented programming language?

C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.


Examples for oops concepts?

polymorphism,inheritance,encapsulation,objects,classes


What is association and link association?

links are associated with objects and associations are associated with classes.


What is the use of objects in a class?

Hi, There is detail explanation about objects & classes here : http://vitzy.net/forum/Class-Objects-t1227.html Let me know if that helps, Thank you.


Is a template for creating a set of objects having common characteristics and behaviour?

A Class. classes are the blueprint for construct objects with the same characteristics and behaviours.