answersLogoWhite

0


Best Answer

A concrete class is a complete type, as opposed to an abstract class which is an incomplete type.

class A {

public:

virtual void f () = 0; // pure-virtual; class A is abstract

// ...

};

class B : public A {

public:

void f () override; // overrides A::f(); class B is concrete

};

class C {

// no pure-virtual methods; C is a concrete type

// ...

};

Template classes are generic types. We usually evolve a generic type from a concrete type rather than write a template class from scratch, a technique known as lifting. The concrete type provides us with the complete implementation which is useful for testing and debugging purposes. When the concrete class is fully-implemented and error-free, we can generalise to produce the generic type.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a Concrete class in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can a c plus plus class be derived from a Java class?

No.


What is the role of object in c plus plus?

An object in C++ is an instance of a C++ class.


What is nested class in c plus plus?

s.


What is the unit of programming in c plus plus A. Function B. class C. object D. Attribute?

B. Class.


What is a method in c plus plus?

In C++, methods are simply class member functions.


Can you use c in c plus plus without using class and object?

Sure.


How do you create a class in C plus plus?

class class_name { private: data_members; public: member_functions; };


What is object in c plus plus?

An object is simply an instance of a class.


What are the abstract datatypes in c plus plus?

Class Object Message


What is an instance class in C plus plus?

You have a class(i.g. MyClass): class MyClass{ public: int MyData; }; And then you use the class like this: int main(){ MyClass MyObject; MyObject.MyData=7; }


In c plus plus class is terminated by semicolon but in java it is not terminated?

True.


How do you calculate the size of a class in memory in C plus plus?

Use sizeof( ).