function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bob_zBob_z 

Opportunity Wizard Controller to create or update child records

I came across article on in developer documentation taken from  Visualforce Developer Guide.  It demonstrates how to create a Opportunity Wizard Controller.  
I was wondering if this can be converted to be able to create custom object records base upon the record type.

Example: I have custom child object (product) with record types
product 1 = product 1 record type
product 2 = product 2 record type
product 3 = product 3 record type

I want to use this wizard to create or update these products 

How can i accomplishing create a wizard?  any help would be greatly appreciated 
Plesde let me know if you need more information 
 
public Account getAccount() {
      if(account == null) account = new Account();
      return account;
   }

   public Contact getContact() {
      if(contact == null) contact = new Contact();
      return contact;
   }

   public Opportunity getOpportunity() {
      if(opportunity == null) opportunity = new Opportunity();
      return opportunity;
   }

   public OpportunityContactRole getRole() {
      if(role == null) role = new OpportunityContactRole();
      return role;
   }