Skip to content

Amit Kumar Trivedi

React, React Native Developer

Menu

  • Blog
  • Contact
  • About

Month: August 2020

Pure Virtual Function and Abstract Class with Shape, Rectangle and Triangle Example

Pure Virtual Function and Abstract Class with Shape, Rectangle and Triangle Example

In the below code, the SHAPE class has a pure virtual function and is an abstract class (cannot be instantiated). Each class is derived from SHAPE implementing Draw () function in its own way. Further, each Draw function is virtual

Amit N Trivedi August 31, 2020August 31, 2020 CPP No Comments Read more

Pure Virtual Function and Abstract Class with Vehicle Example

What is a Pure Virtual Function? A pure virtual function (or abstract function) in C++ is a virtual function for which we don’t have an implementation, we only declare it. A pure virtual function is declared by assigning 0 in

Amit N Trivedi August 31, 2020August 31, 2020 CPP No Comments Read more

Polymorphism and Virtual Function in C++ : Basics

Amit N Trivedi August 26, 2020 CPP No Comments Read more

Polymorphism and Virtual Function in C++ – Shape Example

Create Class Shape. Derived the class Triangle and class Rectangle. Create a draw function in each class. Demonstrate polymorphism by accessing draw function using pointers of Shape class.

Amit N Trivedi August 26, 2020August 26, 2020 CPP No Comments Read more

Recent Posts

  • Explain friend member function with example.
  • What is a constructor? Explain the characteristics of it in detail.
  • Write a short note on Function Overloading in C++
  • Write Short notes on Default Arguments in C++.
  • How to define the Function outside the class body? Explain with an example.

Recent Comments

  • Vijay Thirugnanam on INTRODUCTION TO DATA WAREHOUSE
  • Vikas on Managing Risk for Software Engineering Project
  • Sunil Rana on Managing Risk for Software Engineering Project
  • Amit N Trivedi on Managing Risk for Software Engineering Project
  • Murali on Managing Risk for Software Engineering Project

Archives

  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2018
  • April 2018
  • January 2018
  • December 2017
  • October 2017
  • July 2017
  • April 2017
  • March 2017
  • January 2017
  • December 2016
  • August 2016
  • July 2016
  • June 2016

Categories

  • Agile
  • Angular JS
  • Azure
  • C#
  • CPP
  • Design Pattern
  • Entity Framework
  • Javascript
  • LINQ
  • Management
  • MVC
  • React JS
  • React Native
  • Security
  • Software Development
  • SQL
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Please follow & like us :)

RSS
Follow by Email
Facebook
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet
Pinterest
Pinterest
fb-share-icon
LinkedIn
LinkedIn
Share
Copyright © 2021 Amit Kumar Trivedi. Powered by WordPress. Theme: Spacious by ThemeGrill.