answersLogoWhite

0


Best Answer

A class that is declared as "final" cannot be inherited.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Abstract classes (classes with at least one pure-virtual method) and static classes (where all members are declared static), cannot be instantiated as objects.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the type of class for which object cannot be created?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is true about true about abstract data type Object of an abstract class type cant be created. We can derive classes from these abstract classes Object of an abstract class t?

True - an instance of an abstract class cannot be created. False - derive (subclass) from a class, not the object (the instance).


How objects are predefind types?

An object is created from a class, like a house made from a blueprint. The object will therefore be of the type of its class. For instance, a String object will be of type String, which is defined by the String class.


How get value integer type in GUI box?

In C#, a reference type [of object] is an object created from a class, a value type is an object created from a struct. value type of objects are identical if their value/state are the same, while...


What is the difference between the class and the entity?

A class is a type. An entity is a object created from this type. A class is like a definition and the entity behaves as per this definition.


How objects are created?

By using the new keyword. Whenever you use the new keyword along with a class name, an object of that class gets created. Ex: Ferrari obj = new Ferrari(); The above line creates an object of type "Ferrari" and the constructor inside the class named Ferrari would get invoked and an object of type Ferrari would get created.


What is return data type?

A Constructor in java cannot have a return type. It always creates and returns an object of the class for which it is the constructor. You cannot return a value from a constructor explicitly and if you try to do that, the compiler will give an error. The system knows that the purpose of the constructor is to create an object of the class and it will do the same irrespective of whether you declare a return type or not.


What is the difference between a class and a function in C plus plus?

You cannot point at a class, you can only point at an instance of a class, which is simply another term for an object. The class is essentially the object's type; it define's the object's behaviour, but is not the object in and of itself. The class also defines a pointer's type, so we can point at instances of a class and access the the object it represents through indirection.


What is the difference between the constructor to and destructor?

Functions and Constructors are similar in many ways. They can have arguments, they can have any amount of code, they can access the class's variables etc. the only difference is that a method in java needs to mandatorily have a return type but a Constructor in java cannot have a return type. It always creates and returns an object of the class for which it is the constructor. You cannot return a value from a constructor explicitly and if you try to do that, the compiler will give an error. The system knows that the purpose of the constructor is to create an object of the class and it will do the same irrespective of whether you declare a return type or not.


What is the reference type and value type?

In C#, a reference type [of object] is an object created from a class, a value type is an object created from a struct. 2 value type of objects are identical if their value/state are the same, while reference type are identical only if their storage address are the same. In C#, unless you can look at the definition of an object, usually you don't know the object is a value type or reference type. public struct MyThing {} public class Toy {} MyThing cat = new MyThing(); MyThing dog = new MyThing(); Console.WriteLine(cat yours); // False


How does the final keyword affect the behavior of Object type in Java?

In Java, the final keyword specifies that the object created cannot be further redefined or derived.


What does 'public static final int' mean?

public: It can be called (method) or accessed (field) from any class in any package.static: It is declared on the class rather than the object. If a method, you do not need an object to call it, it can be called directly on the class. If a field, there is only one variable for the class, not one per object.final: If a method, the method cannot be overridden. If a field, the value cannot be changed (a constant).int: If a method, the return type. If a field, the field type (it can only hold values of type 'int'). int is the primitive integer type.


Which type of object can be created directly in Excel?

A chart is the type of object that can be created directly in Excel.