# What is the main difference between creating an object of a class and extending a class.In both the cases we can use the methods and properties of the class which is been extended or made an object

**URL:** <https://verificationacademy.com/forums/t/what-is-the-main-difference-between-creating-an-object-of-a-class-and-extending-a-class-in-both-the-cases-we-can-use-the-methods-and-properties-of-the-class-which-is-been-extended-or-made-an-object/29950>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [September 17, 2014, 8:34am UTC](https://verificationacademy.com/forums/t/what-is-the-main-difference-between-creating-an-object-of-a-class-and-extending-a-class-in-both-the-cases-we-can-use-the-methods-and-properties-of-the-class-which-is-been-extended-or-made-an-object/29950 "2014-09-17T08:34:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mamta\_r](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@mamta\_r](https://verificationacademy.com/forums/u/mamta_r)\
**Post date:** [September 18, 2014, 3:57am UTC](https://verificationacademy.com/forums/t/what-is-the-main-difference-between-creating-an-object-of-a-class-and-extending-a-class-in-both-the-cases-we-can-use-the-methods-and-properties-of-the-class-which-is-been-extended-or-made-an-object/29950/3 "2014-09-18T03:57:18Z")

</div>

_In reply to [gordon](https://verificationacademy.com/forums/t/what-is-the-main-difference-between-creating-an-object-of-a-class-and-extending-a-class-in-both-the-cases-we-can-use-the-methods-and-properties-of-the-class-which-is-been-extended-or-made-an-object/29950/2):_

Thanks a lot Gordon

You say " class\_Extended contains an instance of a class\_Main because it IS an instance of class\_Main."  
Actually class\_Extended is an extended class of class\_Main .

I am still confused with the explanation .

---

_[View the full topic](https://verificationacademy.com/forums/t/what-is-the-main-difference-between-creating-an-object-of-a-class-and-extending-a-class-in-both-the-cases-we-can-use-the-methods-and-properties-of-the-class-which-is-been-extended-or-made-an-object/29950)._
