[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Create a Class. How? Urgent.

Posted on 2000-03-18
3
Medium Priority
?
232 Views
Last Modified: 2010-04-02
I am using Borland C++ Builder.
I want to create a class, inherited from TRect Class. How do I do it and where do i Save it to use it later.
The class I am trying to create is a rectangle with arrows in it.
0
Comment
Question by:pcb69
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
laeuchli earned 200 total points
ID: 2631498
I assume you are talking about C++. This is easy.
Class Test:TRect
{
public:
private:
protected:
};
0
 
LVL 5

Expert Comment

by:laeuchli
ID: 2631500
just put this in a include file, and and include it with #include"test.h" in your main program.
0
 
LVL 22

Expert Comment

by:nietod
ID: 2631512
If you do that, you probably want to publiclly inherit from TRect.

However, depending on what you _really_ want to do, there is a good chance that you don't really want to enherit from TRect at all.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question