This is a discussion on Differennt types of class within the C and C++ Programming forums, part of the Software Development category; Node class A node class is a class that,relies on the base class for services and implementation, provides a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Node class A node class is a class that,
__________________ J.Vijayanand |
| Sponsored Links |
| |||
| orthogonal base class: If two base classes have no overlapping methods or data they are said to be independent of, or orthogonal to each other. Orthogonal in the sense means that two classes operate in different dimensions and do not interfere with each other in any way. The same derived class may inherit such classes with no difficulty
__________________ J.Vijayanand |
| |||
| Container class A container class is a class that is used to hold objects in memory or external storage. A container class acts as a generic holder. A container class has a predefined behavior and a well-known interface. A container class is a supporting class whose purpose is to hide the topology used for maintaining the list of objects in memory. When a container class contains a group of mixed objects, the container is called a heterogeneous container; when the container is holding a group of objects that are all the same, the container is called a homogeneous container.
__________________ J.Vijayanand |
| |||
| Protocol class An abstract class is a protocol class if:
__________________ J.Vijayanand |
| |||
| Mixin class A class that provides some but not all of the implementation for a virtual base class is often called mixin. Derivation done just for the purpose of redefining the virtual functions in the base classes is often called mixin inheritance. Mixin classes typically don't share common bases.
__________________ J.Vijayanand |
| |||
| Concrete class A concrete class is used to define a useful object that can be instantiated as an automatic variable on the program stack. The implementation of a concrete class is defined. The concrete class is not intended to be a base class and no attempt to minimize dependency on other classes in the implementation or behavior of the class.
__________________ J.Vijayanand |
| |||
| Handle class A handle is a class that maintains a pointer to an object that is programmatically accessible through the public interface of the handle class. Explanation: In case of abstract classes, unless one manipulates the objects of these classes through pointers and references, the benefits of the virtual functions are lost. User code may become dependent on details of implementation classes because an abstract type cannot be allocated statistically or on the stack without its size being known. Using pointers or references implies that the burden of memory management falls on the user. Another limitation of abstract class object is of fixed size. Classes however are used to represent concepts that require varying amounts of storage to implement them. A popular technique for dealing with these issues is to separate what is used as a single object in two parts: a handle providing the user interface and a representation holding all or most of the object's state. The connection between the handle and the representation is typically a pointer in the handle. Often, handles have a bit more data than the simple representation pointer, but not much more. Hence the layout of the handle is typically stable, even when the representation changes and also that handles are small enough to move around relatively freely so that the user needn’t use the pointers and the references.
__________________ J.Vijayanand |
| |||
| action class The simplest and most obvious way to specify an action in C++ is to write a function. However, if the action has to be delayed, has to be transmitted 'elsewhere' before being performed, requires its own data, has to be combined with other actions, etc then it often becomes attractive to provide the action in the form of a class that can execute the desired action and provide other services as well. Manipulators used with iostreams is an obvious example. Explanation: A common form of action class is a simple class containing just one virtual function. PHP Code: PHP Code:
__________________ J.Vijayanand |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debug class and Trace class | simplesabita | Software Testing | 3 | 08-18-2007 12:30 AM |
| Can we inherit the java class in C# class | vigneshgets | C# Programming | 1 | 08-09-2007 07:42 AM |
| Is there any way to use keyPressed method of Canvas class in Form class? | bluesky | Mobile Software Development | 1 | 07-25-2007 06:02 AM |
| How many types of authentication modes are there and what are the Types.... | Archer | ASP and ASP.NET Programming | 1 | 07-25-2007 03:48 AM |
| What is super class sub class in error? | santoshmalvi | Software Testing | 1 | 04-16-2007 01:20 AM |