From the course: AutoCAD: Building Add-ins with C#

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Inheriting a base class object

Inheriting a base class object - AutoCAD Tutorial

From the course: AutoCAD: Building Add-ins with C#

Start my 1-month free trial

Inheriting a base class object

- [Instructor] In our last video, we got introduced a little bit more to object oriented programming using classes. We saw where class is not just a collection or a wrapper for our code or routines, but it can become an object. We can assign properties as well as store routines in an instance of these different class objects. Let's take this a little bit further. We're going to inherit the base class object in a new class. So we're gonna open up our exercise. And go to Desktop, Exercise Files, chapter seven and we're going to go to the 07-02 solution. Inside the 07-02 solution we will find the base object as well as the initialization class that we have from our last exercise. Let's go ahead and we're gonna create a new class. I'm gonna right-click on my project. Come down to Add, and at the bottom of that, choose class and we're gonna name this class LayerObject. This class we wanna use the base class that we built in our last video. We wanna use the properties from there, the…

Contents